[Wallet]: Open Near Intents Block Explorer in New Tab from Details Modal (#35215)

Fixes a bug where Near Intents block explorer was opening in a new Window from the Transaction Details modal
This commit is contained in:
Douglas Daniel
2026-04-02 15:13:04 -05:00
committed by GitHub
parent 2cfea6fcf0
commit 21e198fbb7
@@ -71,6 +71,7 @@ import {
getAccountLabel,
} from '../../../../utils/account-utils'
import { makeNetworkAsset } from '../../../../options/asset-options'
import { openTab } from '../../../../utils/routes-utils'
// Components
import { PopupModal } from '../../popup-modals/index'
@@ -701,12 +702,7 @@ export const TransactionDetailsModal = ({ onClose, transaction }: Props) => {
<Button
onClick={
swapStatus?.explorerUrl
? () =>
window.open(
swapStatus.explorerUrl,
'_blank',
'noreferrer',
)
? () => openTab(swapStatus.explorerUrl)
: onClickViewOnBlockExplorer(
transaction.swapInfo?.provider
=== BraveWallet.SwapProvider.kLiFi