File tree 2 files changed +12
-1
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix loading state when loading source tokens in PayEmbed
Original file line number Diff line number Diff line change @@ -176,7 +176,12 @@ export function TokenSelectorScreen(props: {
176
176
enabled : ! ! props . sourceSupportedTokens && ! ! chainInfo . data ,
177
177
} ) ;
178
178
179
- if ( walletsAndBalances . isLoading || chainInfo . isLoading ) {
179
+ if (
180
+ walletsAndBalances . isLoading ||
181
+ chainInfo . isLoading ||
182
+ ! chainInfo . data ||
183
+ ! props . sourceSupportedTokens
184
+ ) {
180
185
return < LoadingScreen /> ;
181
186
}
182
187
@@ -307,6 +312,7 @@ function WalletRowWithBalances(props: {
307
312
style = { {
308
313
borderRadius : radius . lg ,
309
314
border : `1px solid ${ theme . colors . borderColor } ` ,
315
+ minHeight : "350px" ,
310
316
} }
311
317
>
312
318
< Container
You can’t perform that action at this time.
0 commit comments