Skip to content

Commit

Permalink
Fixed Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazan10x committed Dec 18, 2023
1 parent a738928 commit 8d8da18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export interface User {
monthly_score: number;
yearly_score: number;
overall_score: number;
monthly_emissions: number;
yearly_emissions: number;
overall_emissions: number;
province: string;
household: number;
fuel_efficiency: number;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/screens/settings/updateProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function UpdateProfileScreen(): JSX.Element {
aspect: [1, 1],
quality: 1,
});
if (!result.canceled) {
if (!(result.canceled)) {
await firebaseService.uploadProfilePicture(userid, result.assets[0].uri);
setPhotoURL(result.assets[0].uri);
setRerenderKey((prevKey) => prevKey + 1);
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/screens/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export default function SignUp(): JSX.Element {
household: 0,
fuel_efficiency: 0,
photoURL: '',
monthly_emissions: 0,
yearly_emissions: 0,
overall_emissions: 0
});

if (typeof res === 'string') {
Expand Down

0 comments on commit 8d8da18

Please sign in to comment.