Skip to content

Commit 3dbf9e1

Browse files
authored
Fix: Bridge Playground Chain Input Form (#7371)
1 parent be49798 commit 3dbf9e1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/twelve-brooms-kneel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix typo in payment confirmation widget

apps/playground-web/src/app/connect/pay/embed/LeftSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function LeftSection(props: {
105105
<Label htmlFor="fund-wallet-chain-id">Chain ID</Label>
106106
<Input
107107
id="fund-wallet-chain-id"
108-
type="number"
108+
type="text"
109109
placeholder="1 (Ethereum)"
110110
className="bg-card"
111111
value={payOptions.buyTokenChain?.id || ""}

packages/thirdweb/src/react/web/ui/Bridge/payment-success/PaymentReceipt.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ interface TransactionInfo {
3333
label: string;
3434
chain: ChainMetadata;
3535
destinationToken?: Token;
36+
destinationChain?: ChainMetadata;
3637
originToken?: Token;
3738
originChain?: ChainMetadata;
3839
amountPaid?: string;
@@ -102,6 +103,7 @@ function useTransactionInfo(
102103
originToken: status.originToken,
103104
originChain,
104105
destinationToken: status.destinationToken,
106+
destinationChain,
105107
amountReceived: `${formatTokenAmount(
106108
status.destinationAmount,
107109
status.destinationToken.decimals,
@@ -228,7 +230,7 @@ function CompletedStepDetailCard({
228230
Origin Chain
229231
</Text>
230232
<Text size="sm" color="primaryText">
231-
{shorterChainName(txInfo.chain.name)}
233+
{shorterChainName(txInfo.originChain.name)}
232234
</Text>
233235
</Container>
234236
)}

0 commit comments

Comments
 (0)