Skip to content

Commit 2763335

Browse files
committed
[MNY-275] Surface the error from bridge API in SwapWidget UI
1 parent 12082fd commit 2763335

File tree

1 file changed

+2
-1
lines changed
  • packages/thirdweb/src/react/web/ui/Bridge/swap-widget

1 file changed

+2
-1
lines changed

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/swap-ui.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,14 @@ export function SwapUI(props: SwapUIProps) {
399399
<Text
400400
size="sm"
401401
color="danger"
402+
multiline
402403
center
403404
style={{
404405
paddingBlock: spacing.md,
405406
}}
406407
>
407408
{preparedResultQuery.error
408-
? "Failed to get a quote"
409+
? preparedResultQuery.error.message || "Failed to get a quote"
409410
: buyTokenQuery.isError
410411
? "Failed to fetch buy token details"
411412
: sellTokenQuery.isError

0 commit comments

Comments
 (0)