Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
impelcrypto committed Nov 28, 2023
1 parent 171c210 commit 5ed8878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dapp-staking/dapp/ProjectDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ export default defineComponent({
const address = props.dapp.dapp.address;
const blockscout = `${providerEndpoints[currentNetworkIdx.value].blockscout}/address/`;
const subscan = `${providerEndpoints[currentNetworkIdx.value].subscan}/account/`;
return address.startsWith('0x') ? blockscout + address : subscan + address;
const explorer = address.startsWith('0x') ? blockscout : subscan;
return explorer + address;
});
const copyAddress = (address: string): void => {
Expand Down

0 comments on commit 5ed8878

Please sign in to comment.