From a84d79eff22d541509585edeeb1e2966ee6fed62 Mon Sep 17 00:00:00 2001 From: MrXyfir Date: Tue, 26 Mar 2019 11:47:14 -0700 Subject: [PATCH] Clear 'message sent' state if email changes --- web/components/Unauthenticated.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/Unauthenticated.tsx b/web/components/Unauthenticated.tsx index 036aecd..f8646d1 100644 --- a/web/components/Unauthenticated.tsx +++ b/web/components/Unauthenticated.tsx @@ -59,7 +59,7 @@ export class _Unauthenticated extends React.Component< onChangeEmail(email: string) { clearTimeout(this.timeout); - this.setState({ email }); + this.setState({ email, passwordless: false, registered: false }); if (this.state.create) { this.timeout = setTimeout(