fix: signup only working after one retry (fehmer) (#5406)

This commit is contained in:
Christian Fehmer 2024-05-20 11:44:23 +02:00 committed by GitHub
parent b17803918b
commit 02d4c2a1fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -499,7 +499,7 @@ async function signUp(): Promise<void> {
});
return;
}
RegisterCaptchaModal.show();
await RegisterCaptchaModal.show();
const captchaToken = await RegisterCaptchaModal.promise;
if (captchaToken === undefined || captchaToken === "") {
Notifications.add("Please complete the captcha", -1);