Skip to content

Commit

Permalink
fix: send token value error (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin01 authored Oct 19, 2024
1 parent daed88b commit af45ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wallet/src/pages/send-token/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const SendTokenPage: FC = observer(() => {
onChange={(e) => {
const value = e.target.value
const [, decimals] = value.split('.')
if (decimals?.length > Math.min(SYSTEM_MAX_DECIMALS, token?.decimalPlaces.value ?? Infinity)) {
if (decimals?.length > Math.min(SYSTEM_MAX_DECIMALS, token?.decimalPlaces?.value ?? Infinity)) {
return
}
setValue('amount', value)
Expand Down

0 comments on commit af45ffe

Please sign in to comment.