Skip to content

Commit 0bb8138

Browse files
add utm
1 parent ea02e6c commit 0bb8138

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/thirdweb/src/react/web/ui/TransactionButton/DepositScreen.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export function DepositScreen(props: {
131131
: transactionCostAndData.transactionValueWei;
132132

133133
const openFaucetLink = () => {
134-
window.open(`https://thirdweb.com/${props.tx.chain.id}`);
134+
window.open(
135+
`https://thirdweb.com/${props.tx.chain.id}?utm_source=ub_deposit`,
136+
);
135137
};
136138

137139
return (
@@ -146,7 +148,7 @@ export function DepositScreen(props: {
146148
<Text size="xs" center color="danger" multiline>
147149
You need{" "}
148150
{formatNumber(
149-
Number(
151+
Number.parseFloat(
150152
toTokens(requiredFunds, transactionCostAndData.decimals),
151153
),
152154
5,

0 commit comments

Comments
 (0)