From 3e0d78d30aa7080220ac033758066a4fd21b2897 Mon Sep 17 00:00:00 2001 From: David Zwart Date: Mon, 11 Nov 2024 21:07:27 +0100 Subject: [PATCH] fix: apply user id number to string coercion --- RELEASE_NOTES.MD | 1 + src/components/Settings/AccountSettings.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.MD b/RELEASE_NOTES.MD index 08514542..08dbd5e7 100644 --- a/RELEASE_NOTES.MD +++ b/RELEASE_NOTES.MD @@ -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 diff --git a/src/components/Settings/AccountSettings.vue b/src/components/Settings/AccountSettings.vue index 1c146624..0a91e33f 100644 --- a/src/components/Settings/AccountSettings.vue +++ b/src/components/Settings/AccountSettings.vue @@ -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; } @@ -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; }