Skip to content

Commit

Permalink
Update: avoid making network request if the popover was already shown
Browse files Browse the repository at this point in the history
  • Loading branch information
hassaanelgarem committed Jul 12, 2023
1 parent 9af977c commit f668fce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class CompliancePopoverCoordinator: CompliancePopoverCoordinatorProtocol {
}

func presentIfNeeded() {
guard FeatureFlag.compliancePopover.enabled else {
guard FeatureFlag.compliancePopover.enabled, !defaults.didShowCompliancePopup else {
return
}
complianceService.getIPCountryCode { [weak self] result in
Expand Down

0 comments on commit f668fce

Please sign in to comment.