token wallet state display bugfix on confirm send screen

This commit is contained in:
julian 2024-08-27 17:50:03 -06:00 committed by julian-CStack
parent 82d8acb7a2
commit 662bbd3099

View file

@ -522,9 +522,11 @@ class _ConfirmTransactionViewState
SelectableText( SelectableText(
ref.watch(pAmountFormatter(coin)).format( ref.watch(pAmountFormatter(coin)).format(
amountWithoutChange, amountWithoutChange,
ethContract: ref ethContract: widget.isTokenTx
.watch(pCurrentTokenWallet) ? ref
?.tokenContract, .watch(pCurrentTokenWallet)!
.tokenContract
: null,
), ),
style: STextStyles.itemSubtitle12(context), style: STextStyles.itemSubtitle12(context),
textAlign: TextAlign.right, textAlign: TextAlign.right,
@ -745,9 +747,11 @@ class _ConfirmTransactionViewState
SelectableText( SelectableText(
ref.watch(pAmountFormatter(coin)).format( ref.watch(pAmountFormatter(coin)).format(
amountWithoutChange, amountWithoutChange,
ethContract: ref ethContract: widget.isTokenTx
.read(pCurrentTokenWallet) ? ref
?.tokenContract, .watch(pCurrentTokenWallet)!
.tokenContract
: null,
), ),
style: STextStyles style: STextStyles
.desktopTextExtraExtraSmall( .desktopTextExtraExtraSmall(