covidwatchorg / portal

Covid Watch Portal web app for diagnosis verification
Apache License 2.0
8 stars 3 forks source link

Resolve magic link syntax error #387

Closed jcolla-holla closed 4 years ago

jcolla-holla commented 4 years ago

I saw this error happening in staging reported in Sentry logs, which was worrisome so I investigated and found a small syntax error in Login.js using this.errorToast.show() instead of this.errorToast.current.show(). I also adjusted how state is set so it isn't set directly which is bad form and can lead to bugs (more on why it's bad form here if curious).

Screen Shot 2020-07-23 at 9 09 16 AM