From 2a8f6c9535712b9616cace4f96107f39258b1cc8 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:39:16 +0900 Subject: [PATCH] fix --- .../src/components/MkTutorial.ProfileSettings.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkTutorial.ProfileSettings.vue b/packages/frontend/src/components/MkTutorial.ProfileSettings.vue index 1288560d78..bcc0c7e440 100644 --- a/packages/frontend/src/components/MkTutorial.ProfileSettings.vue +++ b/packages/frontend/src/components/MkTutorial.ProfileSettings.vue @@ -39,7 +39,7 @@ import FormSlot from '@/components/form/slot.vue'; import MkInfo from '@/components/MkInfo.vue'; import { selectFile } from '@/scripts/select-file.js'; import * as os from '@/os.js'; -import { signinRequired, updateAccount } from '@/account.js'; +import { signinRequired, updateAccountPartial } from '@/account.js'; import type { TutorialPageCommonExpose } from '@/components/MkTutorial.vue'; const $i = signinRequired(); @@ -58,7 +58,7 @@ watch(name, () => { text: i18n.ts.yourNameContainsProhibitedWordsDescription, }, }); - updateAccount({ name: name.value }); + updateAccountPartial({ name: name.value }); }); watch(description, () => { @@ -67,7 +67,7 @@ watch(description, () => { // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing description: description.value || null, }); - updateAccount({ description: description.value }); + updateAccountPartial({ description: description.value }); }); function setAvatar(ev: MouseEvent) { @@ -90,7 +90,7 @@ function setAvatar(ev: MouseEvent) { const i = await os.apiWithDialog('i/update', { avatarId: originalOrCropped.id, }); - updateAccount({ avatarId: i.avatarId, avatarUrl: i.avatarUrl }); + updateAccountPartial({ avatarId: i.avatarId, avatarUrl: i.avatarUrl }); }); }