Skip to content

Commit

Permalink
fix: apply user id number to string coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzwa committed Nov 11, 2024
1 parent c7e1452 commit 3e0d78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Fixes:

- Account settings - cant change password
- Account settings - apply user id number to string coercion

## Client 11/11/2024 1.6.9

Expand Down
4 changes: 2 additions & 2 deletions src/components/Settings/AccountSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ onMounted(async () => {
});
async function changeUsername() {
if (!userId.value?.length) {
if (!userId.value?.toString()?.length) {
snackbar.openErrorMessage({ title: "User not loaded" });
return;
}
Expand All @@ -133,7 +133,7 @@ async function changeUsername() {
}
async function changePassword() {
if (!userId.value?.length) {
if (!userId.value?.toString()?.length) {
snackbar.openErrorMessage({ title: "User not loaded" });
return;
}
Expand Down

0 comments on commit 3e0d78d

Please sign in to comment.