From 9deb5d13d5819d4f58d6ed8a8efd301e2da4653e Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Wed, 7 Apr 2021 15:03:54 +0200 Subject: [PATCH] fix: only call auth form method once --- app/assets/templates/directives/account-menu.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/templates/directives/account-menu.pug b/app/assets/templates/directives/account-menu.pug index 65433ea0e..97f0a49d8 100644 --- a/app/assets/templates/directives/account-menu.pug +++ b/app/assets/templates/directives/account-menu.pug @@ -99,7 +99,7 @@ ) (Learn more) .sk-panel-section.form-submit(ng-if='!self.state.formData.authenticating') button.sn-button.info.text-base.py-3.text-center( - ng-click='self.submitAuthForm()', + type="submit" ng-disabled='self.state.formData.authenticating' ) {{self.state.formData.showLogin ? "Sign In" : "Register"}} .sk-notification.neutral(ng-if='self.state.formData.showRegister')