Skip to content

Commit 0d43416

Browse files
committed
Update Bouncers.tsx
1 parent b8033df commit 0d43416

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

web/src/pages/Bouncers.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ function isBouncer(obj: unknown): obj is Bouncer {
5757
'type' in obj &&
5858
typeof (obj as { type: unknown }).type === 'string' &&
5959
'version' in obj &&
60-
typeof (obj as { version: unknown }).version === 'string'
60+
typeof (obj as { version: unknown }).version === 'string' &&
61+
(!('status' in obj) || typeof (obj as { status: unknown }).status === 'string')
6162
)
6263
}
6364

0 commit comments

Comments
 (0)