Fixing blockchain explorer on history

This commit is contained in:
brunoedcf
2023-02-06 21:05:21 -03:00
parent 3bdea04020
commit 6b13d5b84f
9 changed files with 57 additions and 22 deletions

View File

@@ -16,6 +16,12 @@ const etherStore = useEtherStore();
const itemsToShow = ref<(Event | ValidDeposit)[]>([]);
const getExplorer = (): string => {
return etherStore.networkName == NetworkEnum.ethereum
? "Etherscan"
: "Polygonscan";
};
// Methods
const isValidDeposit = (
deposit: Event | ValidDeposit
@@ -109,7 +115,7 @@ showInitialItems();
class="flex gap-2 cursor-pointer items-center justify-self-center"
@click="openEtherscanUrl((item as Event)?.transactionHash)"
>
<span class="last-release-info">Etherscan</span>
<span class="last-release-info">{{ getExplorer() }}</span>
<img alt="Redirect image" src="@/assets/redirect.svg" />
</div>
</div>