From 9e14a8b0ba6ac3d9e850daf7b07dc3bf4c2adeca Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Mon, 26 Sep 2022 16:00:17 -0400 Subject: [PATCH] automatically clear local storage when registration succeeds (#71) --- ui/src/Register.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/Register.js b/ui/src/Register.js index ec6b714d..71c0c564 100644 --- a/ui/src/Register.js +++ b/ui/src/Register.js @@ -70,6 +70,9 @@ const NoAccountRequest = () => { } const Success = (props) => { + // clear local storage on new account registration success. + localStorage.clear(); + return (