Skip to content

Commit

Permalink
fix: show spinner when no reserves are loaded yet
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Dec 20, 2021
1 parent cb8e2b5 commit c2f2414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RouteParamsValidationWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function routeParamValidationHOC({
const { walletData } = useWalletBalanceProviderContext({
skip: !withWalletBalance || !poolReserve || (withUserReserve && !userReserve),
});
if (!walletData) {
if (!walletData || !reserves.length) {
return <Preloader withText={true} />;
}

Expand Down

0 comments on commit c2f2414

Please sign in to comment.