Skip to content

Commit a117142

Browse files
committed
Only show IPP announcement if it's supported in the store's country
1 parent 4a62d8d commit a117142

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WooCommerce/Classes/ViewModels/Feature Announcement Cards/FeatureAnnouncementCardViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ class FeatureAnnouncementCardViewModel {
5858
}
5959

6060
private func updateShouldBeVisible() {
61+
guard CardPresentConfigurationLoader(stores: stores).configuration.isSupportedCountry else {
62+
shouldBeVisible = false
63+
return
64+
}
6165
let action = AppSettingsAction.getFeatureAnnouncementVisibility(campaign: config.campaign) { [weak self] result in
6266
guard let self = self else { return }
6367
switch result {

0 commit comments

Comments
 (0)