Skip to content

Commit

Permalink
ci(tangle-dapp): Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
yurixander committed Nov 2, 2024
1 parent 90d2aa5 commit 74fb976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/tangle-dapp/hooks/useSubstrateExplorerUrl.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
ExplorerVariant,
isPolkadotJsDashboard,
makeExplorerUrl,
} from '@webb-tools/api-provider-environment/transaction/utils';
import { useCallback } from 'react';
import { Hash } from 'viem';

import useNetworkStore from '../context/useNetworkStore';
import { ExplorerType } from '../types';
import { isPolkadotJsDashboard } from '../../../libs/api-provider-environment/src/transaction/utils/makeExplorerUrl';

const useSubstrateExplorerUrl = () => {
const { network } = useNetworkStore();
Expand Down Expand Up @@ -46,7 +46,7 @@ const useSubstrateExplorerUrl = () => {
? getExplorerUrl(txBlockHash, 'block')
: getExplorerUrl(txHash, 'tx');
},
[],
[getExplorerUrl, network.nativeExplorerUrl, network.polkadotJsDashboardUrl],
);

return { getExplorerUrl, resolveExplorerUrl };
Expand Down

0 comments on commit 74fb976

Please sign in to comment.