File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
packages/thirdweb/src/react/web/ui/Bridge Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Displays the failure error messages on the BuyWidget
Original file line number Diff line number Diff line change @@ -376,9 +376,20 @@ export function StepRunner({
376376 </ Container >
377377
378378 < Spacer y = "md" />
379- < Text center color = "secondaryText" size = "xs" multiline >
380- Keep this window open until all
381- < br /> transactions are complete.
379+ < Text
380+ center
381+ color = { error ? "danger" : "secondaryText" }
382+ size = "xs"
383+ multiline
384+ >
385+ { error ? (
386+ error . message || "An error occurred. Please try again."
387+ ) : (
388+ < >
389+ Keep this window open until all
390+ < br /> transactions are complete.
391+ </ >
392+ ) }
382393 </ Text >
383394
384395 < Spacer y = "lg" />
You can’t perform that action at this time.
0 commit comments