Skip to content

Commit

Permalink
fix: herf type
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 authored and CarlLiu2023 committed Sep 8, 2023
1 parent 9e613c6 commit d3d4514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/useB3AppOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useB3AppOpen = (initOpenState: OpenPageState) => {
const tagHref = (e.target as HTMLAnchorElement)?.href
let href = tagHref || '/orders'
const timeTarget = Date.now()
if (!tagHref) {
if (!tagHref || typeof timeTarget !== 'string') {
const parentNode = (e.target as HTMLAnchorElement)?.parentNode
const parentNodeOrigin = (e.target as HTMLAnchorElement)?.parentNode
?.parentNode
Expand Down

0 comments on commit d3d4514

Please sign in to comment.