Skip to content

Commit 2f0819e

Browse files
jakobheroroboquat
authored andcommitted
Fix bugs in Account.tsx
1 parent 32400c3 commit 2f0819e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dashboard/src/settings/Account.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Account() {
2020
const [modal, setModal] = useState(false);
2121
const primaryEmail = User.getPrimaryEmail(user!) || "";
2222
const [typedEmail, setTypedEmail] = useState("");
23-
const original = ProfileState.getProfileState(user!);
23+
const original = User.getProfile(user!);
2424
const [profileState, setProfileState] = useState(original);
2525
const [errorMessage, setErrorMessage] = useState("");
2626
const [updated, setUpdated] = useState(false);
@@ -31,7 +31,7 @@ export default function Account() {
3131
if (error) {
3232
return;
3333
}
34-
const updatedUser = ProfileState.setProfileState(user!, profileState);
34+
const updatedUser = User.setProfile(user!, profileState);
3535
setUser(updatedUser);
3636
getGitpodService().server.updateLoggedInUser(updatedUser);
3737
setUpdated(true);

0 commit comments

Comments
 (0)