Skip to content

Commit cb7e263

Browse files
committed
fix: ub playground input field and payment receipt chains
1 parent be49798 commit cb7e263

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

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: 9 additions & 7 deletions
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
)}
@@ -284,13 +286,13 @@ function CompletedStepDetailCard({
284286
txInfo.type === "paymentId"
285287
? () => onCopyToClipboard(txInfo.id)
286288
: () => {
287-
const explorer = txInfo.chain.explorers?.[0];
288-
if (explorer) {
289-
windowAdapter.open(
290-
formatExplorerTxUrl(explorer.url, txInfo.id),
291-
);
292-
}
289+
const explorer = txInfo.chain.explorers?.[0];
290+
if (explorer) {
291+
windowAdapter.open(
292+
formatExplorerTxUrl(explorer.url, txInfo.id),
293+
);
293294
}
295+
}
294296
}
295297
>
296298
{shortenHex(txInfo.id)}

0 commit comments

Comments
 (0)