Skip to content

Commit 3c6bfd9

Browse files
committed
refactor: clarify geoblocked cjit navigation
1 parent 771737a commit 3c6bfd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Bitkit/Views/Wallets/Receive/ReceiveQr.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ struct ReceiveQr: View {
9696
.foregroundColor(.purpleAccent),
9797
isDisabled: wallet.nodeLifecycleState != .running
9898
) {
99-
if GeoService.shared.isGeoBlocked && !wallet.hasUsableChannels {
100-
navigationPath.append(.cjitGeoBlocked)
101-
} else {
99+
if !wallet.hasUsableChannels && !GeoService.shared.isGeoBlocked {
102100
navigationPath.append(.cjitAmount)
101+
} else if GeoService.shared.isGeoBlocked {
102+
navigationPath.append(.cjitGeoBlocked)
103103
}
104104
}
105105
} else {

0 commit comments

Comments
 (0)