Skip to content

Commit

Permalink
Dont warn missing data on testnets
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwartz10 committed Sep 1, 2022
1 parent c42160f commit 5033a8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pages/actor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
ActorState,
MessageHistoryTable,
OneColumn,
PageTitle
PageTitle,
useEnvironment,
Network
} from '@glif/react-components'
import styled from 'styled-components'
import { validateAddressString } from '@glif/filecoin-address'
Expand All @@ -21,6 +23,7 @@ export default function Actor() {
const address = getQueryParam.string(router, 'address')
const hasAddress = !!address
const validAddress = hasAddress && validateAddressString(address)
const { networkName } = useEnvironment()
return (
<ExplorerPage>
{validAddress ? (
Expand All @@ -34,7 +37,7 @@ export default function Actor() {
cidHref={(cid: string) =>
appendQueryParams(PAGE.MESSAGE, { cid })
}
warnMissingData
warnMissingData={networkName === Network.MAINNET}
/>
</Col>
</>
Expand Down

0 comments on commit 5033a8e

Please sign in to comment.