redirect to home when wallet not connected on manage_bids route

This commit is contained in:
brunoedcf 2023-02-22 15:42:35 -03:00
parent 189d4e0f33
commit 5f183359dd

View File

@ -12,6 +12,8 @@ import { withdrawDeposit } from "@/blockchain/buyerMethods";
import type { ValidDeposit } from "@/model/ValidDeposit";
import type { WalletTransaction } from "@/model/WalletTransaction";
import router from "@/router/index";
const etherStore = useEtherStore();
const { walletAddress, networkName } = storeToRefs(etherStore);
@ -62,6 +64,9 @@ const getWalletTransactions = async () => {
};
onMounted(async () => {
if (!walletAddress.value) {
router.push({ name: "home" });
}
await getWalletTransactions();
});