Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Add loading state after connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Nov 8, 2024
1 parent e04b8d5 commit e813d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/WalletConnectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const deepLink = ref('')
const { initProvider, connect: connectWalletConnect } =
useWalletConnectProvider()
const { walletConnectProvider: provider } = storeToRefs(useAppStore())
const { closeModal } = useModal()
const isLoading = ref(false)
const handleClick = async () => {
await closeModal()
isLoading.value = true
navigateTo(deepLink.value, { external: true })
}
Expand All @@ -32,7 +32,7 @@ onMounted(async () => {
variant="secondary"
is-full-width
target="_self"
:is-loading="!deepLink ? true : undefined"
:is-loading="!deepLink || isLoading ? true : undefined"
:loading-text="
formatMessage(
'modal_connect_wallet_select_provider_connect_mobile_button'
Expand Down

0 comments on commit e813d2a

Please sign in to comment.