diff --git a/components/redirect/useRedirectModal.ts b/components/redirect/useRedirectModal.ts index 1206934a8b..e70db30767 100644 --- a/components/redirect/useRedirectModal.ts +++ b/components/redirect/useRedirectModal.ts @@ -52,7 +52,7 @@ export const useRedirectModal = (target: string) => { if (href && isExternal(href) && !isWhiteList(href)) { showModal(href, $i18n) - } else { + } else if (href) { window.open(href, '_blank') } }