better types

This commit is contained in:
Zoe
2024-09-30 01:06:57 -05:00
parent c208e35e4c
commit d7ff2d77ae
9 changed files with 53 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ const updateUser = async () => {
let body = {
username: username.value,
email: email.value,
password: password.value,
password: password.value as string || undefined,
plan_id: plan_id.value,
is_admin: is_admin.value === 'checked' ? true : false,
}