Skip to content

Commit

Permalink
Fix E2E test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
somebody1234 committed Oct 10, 2024
1 parent 3366ba2 commit e24c6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/gui/src/dashboard/authentication/cognito.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ function extractRefreshUrlFromSession(session: cognito.CognitoUserSession): stri
* @throws {Error} If the error is not recognized.
*/
export function intoCurrentSessionErrorType(error: unknown): CognitoErrorType.noCurrentUser {
if (error === 'No current user') {
if (error instanceof Error && error.message === 'No current user') {
return CognitoErrorType.noCurrentUser
} else {
throw error
Expand Down

0 comments on commit e24c6d5

Please sign in to comment.