Skip to content

Commit

Permalink
fix: solve prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawntraoz committed Dec 24, 2024
1 parent 058fa51 commit 1b62eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export const isLoadedMessage = (data: unknown): data is LoadedMessage =>
hasKey(data, 'userId') &&
(typeof data.userId === 'number' || typeof data.userId === 'undefined') &&
hasKey(data, 'userPermissions') &&
(typeof data.userPermissions === 'object' || typeof data.userPermissions === 'undefined') &&
(typeof data.userPermissions === 'object' ||
typeof data.userPermissions === 'undefined') &&
hasKey(data, 'isSpaceAdmin') &&
typeof data.isSpaceAdmin === 'boolean' &&
hasKey(data, 'story') &&
Expand All @@ -49,4 +50,3 @@ export const isLoadedMessage = (data: unknown): data is LoadedMessage =>
typeof data.isAIEnabled === 'boolean' &&
hasKey(data, 'isModalOpen') &&
typeof data.isModalOpen === 'boolean'

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export const isStateMessage = (data: unknown): data is StateChangedMessage =>
hasKey(data, 'userId') &&
(typeof data.userId === 'number' || typeof data.userId === 'undefined') &&
hasKey(data, 'userPermissions') &&
(typeof data.userPermissions === 'object' || typeof data.userPermissions === 'undefined') &&
(typeof data.userPermissions === 'object' ||
typeof data.userPermissions === 'undefined') &&
hasKey(data, 'isSpaceAdmin') &&
typeof data.isSpaceAdmin === 'boolean' &&
hasKey(data, 'story') &&
Expand Down

0 comments on commit 1b62eec

Please sign in to comment.