diff --git a/ui/pages/swaps/index.js b/ui/pages/swaps/index.js index 8c7c7a6cf..45f6eb14a 100644 --- a/ui/pages/swaps/index.js +++ b/ui/pages/swaps/index.js @@ -298,7 +298,8 @@ export default function Swap() { // "setBalanceError" is just a warning, a user can still click on the "Review Swap" button. dispatch(setBalanceError(balanceError)); setTokenFromError( - countDecimals(newInputValue) > fromToken.decimals + fromToken && + countDecimals(newInputValue) > fromToken.decimals ? 'tooManyDecimals' : null, );