mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
hotfix for asset details (#425)
* was broken in non-web3 browsers * missed in https://github.com/oceanprotocol/market/pull/421
This commit is contained in:
parent
be82d9ef2e
commit
7356981350
@ -36,12 +36,14 @@ export default function EtherscanLink({
|
||||
const [url, setUrl] = useState<string>()
|
||||
|
||||
useEffect(() => {
|
||||
const networkData = getNetworkData(networksList, networkId)
|
||||
const networkData = networkId
|
||||
? getNetworkData(networksList, networkId)
|
||||
: null
|
||||
const url =
|
||||
(!networkId && appConfig.network === 'mainnet') || networkId === 1
|
||||
? `https://etherscan.io`
|
||||
: `https://${
|
||||
networkId ? networkData.network : appConfig.network
|
||||
networkData ? networkData.network : appConfig.network
|
||||
}.etherscan.io`
|
||||
|
||||
setUrl(url)
|
||||
|
@ -8,7 +8,7 @@ import { gql, useQuery } from '@apollo/client'
|
||||
import { ReceiptData_datatokens_updates as ReceiptData } from '../../../@types/apollo/ReceiptData'
|
||||
|
||||
const getReceipts = gql`
|
||||
query ReceiptData($address: String!) {
|
||||
query ReceiptData($address: ID!) {
|
||||
datatokens(where: { id: $address }) {
|
||||
createTime
|
||||
tx
|
||||
|
Loading…
Reference in New Issue
Block a user