Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Fixing solid login
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarorg14 committed Apr 29, 2022
1 parent 27a91d9 commit d930a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function getUser(webId: string): Promise<User | undefined> {
apiEndPoint + "/users/findByWebId/" + window.btoa(webId)
);

if (response.status === 204)
if (response.status === 412)
return Promise.resolve(undefined); // In case no user has been found
else return response.json(); // we return the obtained user
}
Expand Down

0 comments on commit d930a03

Please sign in to comment.