fix(markets,explorer): fallback to ethereum mainnet chain Id if sourceChain is not provided (#6014)

This commit is contained in:
Matthew Russell 2024-03-15 11:10:54 +00:00 committed by GitHub
parent be8de04686
commit d9292b9be2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -917,7 +917,7 @@ export const EthOraclePanel = ({ sourceType }: { sourceType: EthCallSpec }) => {
>
{t('View on {{chainLabel}}', {
chainLabel: getExternalChainLabel(
sourceType.sourceChainId.toString()
(sourceType.sourceChainId || 1).toString()
),
})}
</EtherscanLink>