Skip to content

Commit 920c7e0

Browse files
committed
fix: error message when no onramp quotes exist
1 parent 3d8869a commit 920c7e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/thirdweb/src/react/web/ui/Bridge/payment-selection/FiatProviderSelection.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ export function FiatProviderSelection({
7171
return quoteQueries.map((q) => q.data).filter((q) => !!q);
7272
}, [quoteQueries]);
7373

74+
if (quoteQueries.every((q) => q.isError)) {
75+
return (
76+
<Container center="both" flex="column" style={{ minHeight: "120px" }}>
77+
<Text color="secondaryText" size="sm">
78+
No quotes available
79+
</Text>
80+
</Container>
81+
);
82+
}
83+
7484
// TODO: add a "remember my choice" checkbox
7585

7686
return (

0 commit comments

Comments
 (0)