From 3073e705f6f402720209a3b9a1cf5afe979ed4f0 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 18 Jul 2018 13:05:22 -0500 Subject: [PATCH] Fix for login error messages not being sticky --- .../src/components/session_login_page/SessionLoginForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascripts/src/components/session_login_page/SessionLoginForm.tsx b/javascripts/src/components/session_login_page/SessionLoginForm.tsx index a2712a74..d04cd8ba 100644 --- a/javascripts/src/components/session_login_page/SessionLoginForm.tsx +++ b/javascripts/src/components/session_login_page/SessionLoginForm.tsx @@ -68,10 +68,10 @@ export class SessionPageForm extends HoudiniForm { } catch(e){ if (e.error) { - f.invalidate(e.error) + f.invalidateFromServer(e.error) } else { - f.invalidate(e) + f.invalidateFromServer(e) } } } @@ -99,7 +99,7 @@ class InnerSessionLoginForm extends React.Component
{(this.form as any).error}
: '' + let errorDiv = !this.form.isValid || this.form.hasServerError ?
{this.form.serverError}
: '' return