Skip to content

Commit 20aee3c

Browse files
committed
fix: ui state matching issue
1 parent 4c90f88 commit 20aee3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/lib/ui-state.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ export const getUiState = <
6666
},
6767
match: (status, handler, __matched = false, render = () => null) => {
6868
if (
69-
!__matched && typeof status === 'string'
69+
!__matched &&
70+
(typeof status === 'string'
7071
? isMatching(status)
71-
: isMatchingArray(status as Array<Status>)
72+
: isMatchingArray(status as Array<Status>))
7273
) {
7374
return {
7475
...(uiState as ExplicitAny),

0 commit comments

Comments
 (0)