Skip to content

Commit

Permalink
fix(trade): buy input decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
adderpositive committed Nov 6, 2024
1 parent e4536e2 commit 0a31704
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export const CoinmarketFormInputCryptoAmount = <TFieldValues extends CoinmarketA
: (errors as FieldErrors<CoinmarketBuyFormProps>).cryptoInput;
const networkSymbol = cryptoSelect?.value && cryptoIdToCoinSymbol(cryptoSelect?.value);
const decimals = getCoinmarketNetworkDecimals({
sendCryptoSelect: cryptoSelect as CoinmarketAccountOptionsGroupOptionProps | undefined,
sendCryptoSelect: !isCoinmarketBuyContext(context)
? (cryptoSelect as CoinmarketAccountOptionsGroupOptionProps | undefined)
: undefined,
network,
});

Expand Down

0 comments on commit 0a31704

Please sign in to comment.