We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27e63d commit 0fdc982Copy full SHA for 0fdc982
packages/thirdweb/src/react/web/ui/Bridge/TransactionPayment.tsx
@@ -327,10 +327,11 @@ export function TransactionPayment({
327
onClick={() => {
328
if (transactionDataQuery.data?.tokenInfo) {
329
onContinue(
330
- (Math.max(0,
+ Math.max(
331
+ 0,
332
Number(transactionDataQuery.data.totalCost) -
- Number(transactionDataQuery.data.userBalance)
333
- )).toString(),
+ Number(transactionDataQuery.data.userBalance),
334
+ ).toString(),
335
transactionDataQuery.data.tokenInfo,
336
getAddress(activeAccount.address),
337
);
0 commit comments