forked from axiom-team/gecko
fix: null balance deleting check
This commit is contained in:
parent
fd5504eadd
commit
d62691d6f9
|
@ -500,7 +500,8 @@ class WalletOptions extends StatelessWidget {
|
||||||
_hasConsumers.hasError) {
|
_hasConsumers.hasError) {
|
||||||
return const Text('');
|
return const Text('');
|
||||||
}
|
}
|
||||||
final double _balance = balanceCache[walletProvider.address.text]!;
|
final double _balance =
|
||||||
|
balanceCache[walletProvider.address.text] ?? 0;
|
||||||
final bool canDelete = !isDefaultWallet &&
|
final bool canDelete = !isDefaultWallet &&
|
||||||
!_hasConsumers.data! &&
|
!_hasConsumers.data! &&
|
||||||
(_balance > 2 || _balance == 0);
|
(_balance > 2 || _balance == 0);
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Pay with G1.
|
||||||
# pub.dev using `pub publish`. This is preferred for private packages.
|
# pub.dev using `pub publish`. This is preferred for private packages.
|
||||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
|
|
||||||
version: 0.0.8+6
|
version: 0.0.8+7
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
Loading…
Reference in New Issue