[#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:
parent
ebbf2520ad
commit
83e5f4fb11
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue