Skip to content

Commit d0c03b1

Browse files
committed
update
1 parent e58ecdf commit d0c03b1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

packages/thirdweb/src/react/web/ui/Bridge/BuyWidget.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,19 @@ function BridgeWidgetContentWrapper(props: BuyWidgetProps) {
410410
}
411411
/>
412412
);
413+
} else if (tokenQuery.error) {
414+
return (
415+
<ErrorBanner
416+
client={props.client}
417+
error={tokenQuery.error}
418+
onRetry={() => {
419+
tokenQuery.refetch();
420+
}}
421+
onCancel={() => {
422+
props.onCancel?.(undefined);
423+
}}
424+
/>
425+
);
413426
}
414427

415428
return null;

packages/thirdweb/src/react/web/ui/Bridge/CheckoutWidget.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,19 @@ function CheckoutWidgetContentWrapper(props: CheckoutWidgetProps) {
396396
}
397397
/>
398398
);
399+
} else if (tokenQuery.error) {
400+
return (
401+
<ErrorBanner
402+
client={props.client}
403+
error={tokenQuery.error}
404+
onRetry={() => {
405+
tokenQuery.refetch();
406+
}}
407+
onCancel={() => {
408+
props.onCancel?.(undefined);
409+
}}
410+
/>
411+
);
399412
}
400413

401414
return null;

0 commit comments

Comments
 (0)