From b46ab4112af91b8383fe1f6cb35324e81267667f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 9 Mar 2026 14:20:13 +0800 Subject: [PATCH] Fix falsy check on newUsername to use explicit null comparison Co-Authored-By: Claude Opus 4.6 --- src/stores/acctMgmt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/acctMgmt.ts b/src/stores/acctMgmt.ts index 865fb07..0ff21ae 100644 --- a/src/stores/acctMgmt.ts +++ b/src/stores/acctMgmt.ts @@ -184,7 +184,7 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', { try { const response = await apiClient.put(apiEdit, { - username: editDetail.newUsername ? editDetail.newUsername : editDetail.username, + username: editDetail.newUsername != null ? editDetail.newUsername : editDetail.username, password: editDetail.password, name: editDetail.name, is_active: editDetail.is_active,