diff --git a/src/blockchain/events.ts b/src/blockchain/events.ts index 64c896b..897e087 100644 --- a/src/blockchain/events.ts +++ b/src/blockchain/events.ts @@ -31,6 +31,7 @@ const getNetworksLiquidity = async (): Promise => { mumbaiProvider ); + etherStore.setLoadingNetworkLiquidity(true); const depositListGoerli = await getValidDeposits( getTokenAddress(NetworkEnum.ethereum), p2pContractGoerli @@ -42,8 +43,8 @@ const getNetworksLiquidity = async (): Promise => { ); etherStore.setDepositsValidListGoerli(depositListGoerli); - etherStore.setDepositsValidListMumbai(depositListMumbai); + etherStore.setLoadingNetworkLiquidity(false); }; const getValidDeposits = async ( diff --git a/src/components/ListingComponent/ListingComponent.vue b/src/components/ListingComponent/ListingComponent.vue index afa4a4b..4b35338 100644 --- a/src/components/ListingComponent/ListingComponent.vue +++ b/src/components/ListingComponent/ListingComponent.vue @@ -6,6 +6,7 @@ import type { WalletTransaction } from "@/model/WalletTransaction"; import { useEtherStore } from "@/store/ether"; import { storeToRefs } from "pinia"; import { ref, watch } from "vue"; +import SpinnerComponent from "../SpinnerComponent.vue"; const etherStore = useEtherStore(); @@ -111,22 +112,7 @@ showInitialItems();