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