Skip to content

Commit

Permalink
fix(frontend): メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正 (#14928)
Browse files Browse the repository at this point in the history
* fix(frontend): メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正

* Update MkSignupDialog.form.vue

* fix condition
  • Loading branch information
kakkokari-gtyih authored Nov 10, 2024
1 parent e0a83e9 commit 31e5f0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend/src/components/MkSignupDialog.form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async function onSubmit(): Promise<void> {
return null;
});

if (res) {
if (res && res.ok) {
if (res.status === 204 || instance.emailRequiredForSignup) {
os.alert({
type: 'success',
Expand All @@ -295,6 +295,8 @@ async function onSubmit(): Promise<void> {
await login(resJson.token);
}
}
} else {
onSignupApiError();
}

submitting.value = false;
Expand Down

0 comments on commit 31e5f0b

Please sign in to comment.