Skip to content

Commit 86692d8

Browse files
Apply suggestion from @coderabbitai[bot]
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e280164 commit 86692d8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Modals/Receive/ReceiveInfo.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,13 @@ export const ReceiveInfo = ({ asset, accountId, onBack }: ReceivePropsType) => {
295295
as={Link}
296296
icon={externalLinkIcon}
297297
aria-label={translate('modals.receive.blockExplorer')}
298-
href={`${asset?.explorerAddressLink}${receiveAddress}`}
298+
href={
299+
asset?.explorerAddressLink && receiveAddress
300+
? `${asset.explorerAddressLink}${receiveAddress}`
301+
: undefined
302+
}
299303
isExternal
300-
isDisabled={!receiveAddress}
304+
isDisabled={!receiveAddress || !asset?.explorerAddressLink}
301305
size='lg'
302306
borderRadius='full'
303307
color='text.base'

0 commit comments

Comments
 (0)