Skip to content

Commit

Permalink
🔧 redirect modal no href
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed May 23, 2023
1 parent 2685582 commit b87d66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/redirect/useRedirectModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
Expand Down

0 comments on commit b87d66c

Please sign in to comment.