diff --git a/lib/screens/myWallets/wallet_options.dart b/lib/screens/myWallets/wallet_options.dart index e0de438546d9fc9282fc1693eede279661bd42d7..73c1d8c93fe8a47471a5e5b45183f411cb9b4ea9 100644 --- a/lib/screens/myWallets/wallet_options.dart +++ b/lib/screens/myWallets/wallet_options.dart @@ -500,7 +500,8 @@ class WalletOptions extends StatelessWidget { _hasConsumers.hasError) { return const Text(''); } - final double _balance = balanceCache[walletProvider.address.text]!; + final double _balance = + balanceCache[walletProvider.address.text] ?? 0; final bool canDelete = !isDefaultWallet && !_hasConsumers.data! && (_balance > 2 || _balance == 0); diff --git a/pubspec.yaml b/pubspec.yaml index 3becc8a532e624a2bba44fb13b8fa124366a9838..f08d96cff77d840fb99241241d66390fd3754bd7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: Pay with G1. # 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 -version: 0.0.8+6 +version: 0.0.8+7 environment: sdk: '>=2.12.0 <3.0.0'