From 7269e9114ad887ca86862480b7a645e1847d5a47 Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Fri, 16 Aug 2024 18:52:37 -0700 Subject: [PATCH] Fix Mobile loading spinner --- components/views/WalletSelection.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/views/WalletSelection.tsx b/components/views/WalletSelection.tsx index ca5f717..076f95e 100644 --- a/components/views/WalletSelection.tsx +++ b/components/views/WalletSelection.tsx @@ -7,6 +7,7 @@ import { useWcUri } from '../../hooks/useWcUri' import { useWallets } from '../../hooks/useWallets' import { DeviceType } from '../../helpers/device' import { ViewContainer } from '../layout/ViewContainer' +import { useRpc } from '../../contexts/FclContext' type Props = { onSelectWallet: (wallet: Wallet) => void @@ -64,11 +65,11 @@ const MobileWrapper = ({ isLoading?: boolean }) => { const { isLoading: wcUriLoading } = useWcUri() + const { rpcEnabled } = useRpc() + const shouldShowLoading = (wcUriLoading && rpcEnabled) || isLoading return ( - - {children} - + {children} ) }