Skip to content

Commit

Permalink
fix: handle unconnected state on receive page
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Dec 20, 2023
1 parent 0fdfb5b commit 5bc2dec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/receive.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<div>
<PageTitle :fallback-route="{ name: 'receive-methods' }">Your address</PageTitle>
<Receive :address="address" :destination="destinations.era" />
<ConnectWalletBlock v-if="!isConnected" />
<Receive v-else :address="address" :destination="destinations.era" />
</div>
</template>

Expand All @@ -14,7 +15,7 @@ import { useDestinationsStore } from "@/store/destinations";
import { useOnboardStore } from "@/store/onboard";
import Receive from "@/views/transactions/Receive.vue";
const { account } = storeToRefs(useOnboardStore());
const { account, isConnected } = storeToRefs(useOnboardStore());
const { destinations } = storeToRefs(useDestinationsStore());
const address = computed(() => account.value.address || "");
Expand Down

0 comments on commit 5bc2dec

Please sign in to comment.