Skip to content

Commit

Permalink
Merge branch 'add-memeContract' into add-memeContract-btcWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 20, 2025
2 parents 5a9598b + 8cbe6d2 commit 238436b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Modal/Controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ export default function Controls({ amount, available, action, asset, totalAvaila
dispatch(
updateAmountMEME({
isMax: p === 100,
amount: new Decimal(value || 0).toFixed(Math.min(decimalLength, asset.decimals)),
// amount: new Decimal(value || 0).toFixed(Math.min(decimalLength, asset.decimals)),
amount: new Decimal(value || 0).toFixed(),
}),
);
} else {
dispatch(
updateAmount({
isMax: p === 100,
amount: new Decimal(value || 0).toFixed(Math.min(decimalLength, asset.decimals)),
// amount: new Decimal(value || 0).toFixed(Math.min(decimalLength, asset.decimals)),
amount: new Decimal(value || 0).toFixed(),
}),
);
}
Expand Down

0 comments on commit 238436b

Please sign in to comment.