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

Commit

Permalink
Merge pull request #930 from SE-TINF22B6/backend
Browse files Browse the repository at this point in the history
Hotfix: nullable picture
  • Loading branch information
denniskp authored Jun 11, 2024
2 parents 2855218 + cc173ff commit d58b400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/web/src/scenes/User/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const UserPage = () => {
const data = await response.json();
setUserId(data.userId);
setUserName(data.username);
if(data.picture.id !== null){
if(data.picture !== null){
setPicture(data.picture);
}
setAmountFollower(data.amountFollower);
Expand Down

0 comments on commit d58b400

Please sign in to comment.