Skip to content

Commit

Permalink
チュートリアルで名前やbio欄を設定すると先に進めなくなる問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarikanaru committed Dec 17, 2024
1 parent 01df944 commit e2f14f4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -58,7 +58,7 @@ watch(name, () => {
text: i18n.ts.yourNameContainsProhibitedWordsDescription,
},
});
updateAccount({ name: name.value });
updateAccountPartial({ name: name.value });
});

watch(description, () => {
Expand All @@ -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) {
Expand All @@ -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 });
});
}

Expand Down

0 comments on commit e2f14f4

Please sign in to comment.