Skip to content

Commit 31e5f0b

Browse files
fix(frontend): メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正 (#14928)
* fix(frontend): メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正 * Update MkSignupDialog.form.vue * fix condition
1 parent e0a83e9 commit 31e5f0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/frontend/src/components/MkSignupDialog.form.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ async function onSubmit(): Promise<void> {
277277
return null;
278278
});
279279

280-
if (res) {
280+
if (res && res.ok) {
281281
if (res.status === 204 || instance.emailRequiredForSignup) {
282282
os.alert({
283283
type: 'success',
@@ -295,6 +295,8 @@ async function onSubmit(): Promise<void> {
295295
await login(resJson.token);
296296
}
297297
}
298+
} else {
299+
onSignupApiError();
298300
}
299301

300302
submitting.value = false;

0 commit comments

Comments
 (0)