File tree 1 file changed +4
-3
lines changed
packages/suite/src/views/wallet/send/Outputs/Amount
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ export const FiatInput = ({
69
69
const outputError = errors . outputs ? errors . outputs [ outputId ] : undefined ;
70
70
const error = outputError ? outputError . fiat : undefined ;
71
71
const fiatValue = getDefaultValue ( fiatInputName , output . fiat || '' ) ;
72
- const tokenValue = getDefaultValue ( tokenInputName , output . token ) ;
72
+ const tokenContractAddress = getDefaultValue ( tokenInputName , output . token ) ;
73
+
73
74
const amountValue = getDefaultValue ( amountInputName , '' ) ;
74
- const token = findToken ( account . tokens , tokenValue ) ;
75
+ const token = findToken ( account . tokens , tokenContractAddress ) ;
75
76
76
77
const currencyValue = watch ( currencyInputName ) ;
77
78
@@ -107,7 +108,7 @@ export const FiatInput = ({
107
108
const inputState = isLowAnonymity ? 'warning' : getInputState ( errorToDisplay ) ;
108
109
const bottomText = isLowAnonymity ? null : errorToDisplay ?. message ;
109
110
110
- const handleChange = ( value : string ) => handleFiatChange ( { outputId, value } ) ;
111
+ const handleChange = ( value : string ) => handleFiatChange ( { outputId, token , value } ) ;
111
112
112
113
const rules = {
113
114
required : translationString ( 'AMOUNT_IS_NOT_SET' ) ,
You can’t perform that action at this time.
0 commit comments