[#833] Ensure that the Send ZEC button is enabled whenever the wallet reports a spendable balance (#835)

- button is enabled when verified shielded balance > 0
This commit is contained in:
Lukas Korba 2023-10-03 14:05:55 +02:00 committed by GitHub
parent ebbf2520ad
commit 83e5f4fb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -69,9 +69,7 @@ public struct HomeReducer: ReducerProtocol {
}
public var isSendButtonDisabled: Bool {
// If the destination is `.send` the button must be enabled
// to avoid involuntary navigation pop.
(self.destination != .send && self.isSyncing) || shieldedBalance.data.verified.amount == 0
shieldedBalance.data.verified.amount == 0
}
public init(