Skip to content

Commit

Permalink
fix(DeepScan): fix the regex and unused imports and conditional rende…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
Anishali2 committed Feb 4, 2024
1 parent 6b40bd1 commit 65e4814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/hooks/auth/useAuthenticationPasscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function useAuthenticationPasscode() {
return;
}

if (data && data?.workspaces && data.workspaces.length) {
if (data && Array.isArray(data.workspaces) && data.workspaces.length > 0) {
setWorkspaces(data.workspaces);

setScreen('workspace');
Expand Down

0 comments on commit 65e4814

Please sign in to comment.