File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
packages/thirdweb/src/react/web/ui/Bridge Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments