Skip to content

Commit 313897d

Browse files
committed
fix: sign up only working on the second attempt
1 parent daa3668 commit 313897d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/ts/controllers/account-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ async function signUp(): Promise<void> {
492492
});
493493
return;
494494
}
495-
RegisterCaptchaModal.show();
495+
await RegisterCaptchaModal.show();
496496
const captchaToken = await RegisterCaptchaModal.promise;
497497
if (captchaToken === undefined || captchaToken === "") {
498498
Notifications.add("Please complete the captcha", -1);

frontend/src/ts/modals/register-captcha.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export let promise = new Promise<string | undefined>((resolve) => {
77
resolvePromise = resolve;
88
});
99

10-
export function show(): void {
11-
void modal.show({
10+
export async function show(): Promise<void> {
11+
await modal.show({
1212
mode: "dialog",
1313
beforeAnimation: async (modal) => {
1414
promise = new Promise((resolve) => {

0 commit comments

Comments
 (0)