mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
Correct description if user has eth wallets but they already have the token
This commit is contained in:
parent
d2d3531102
commit
46af7c2639
1 changed files with 6 additions and 1 deletions
|
@ -43,6 +43,7 @@ class _SelectWalletForTokenViewState
|
|||
extends ConsumerState<SelectWalletForTokenView> {
|
||||
final isDesktop = Util.isDesktop;
|
||||
late final List<String> ethWalletIds;
|
||||
bool _hasEthWallets = false;
|
||||
|
||||
String? _selectedWalletId;
|
||||
|
||||
|
@ -75,6 +76,8 @@ class _SelectWalletForTokenViewState
|
|||
walletsData.removeWhere((key, value) => value.coin != widget.entity.coin);
|
||||
ethWalletIds.clear();
|
||||
|
||||
_hasEthWallets = walletsData.isNotEmpty;
|
||||
|
||||
// TODO: proper wallet data class instead of this Hive silliness
|
||||
for (final walletId in walletsData.values.map((e) => e.walletId).toList()) {
|
||||
final walletContracts = DB.instance.get<dynamic>(
|
||||
|
@ -179,7 +182,9 @@ class _SelectWalletForTokenViewState
|
|||
ethWalletIds.isEmpty
|
||||
? RoundedWhiteContainer(
|
||||
child: Text(
|
||||
"You do not have any Ethereum wallets",
|
||||
_hasEthWallets
|
||||
? "All current Ethereum wallets already have ${widget.entity.name}"
|
||||
: "You do not have any Ethereum wallets",
|
||||
style: STextStyles.label(context),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue