From d7f77ebfe1907f6993ba54bbd1b5c8544cdf7214 Mon Sep 17 00:00:00 2001
From: Ellie Huxtable <ellie@elliehuxtable.com>
Date: Thu, 6 Jun 2024 10:36:39 +0100
Subject: feat(ui): setup single-instance (#2093)

---
 ui/src/components/LoginOrRegister.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ui/src/components/LoginOrRegister.tsx')

diff --git a/ui/src/components/LoginOrRegister.tsx b/ui/src/components/LoginOrRegister.tsx
index c13c314c..f05a9a24 100644
--- a/ui/src/components/LoginOrRegister.tsx
+++ b/ui/src/components/LoginOrRegister.tsx
@@ -25,7 +25,7 @@ function Login(props: LoginProps) {
       await login(username, password, key);
       refreshUser();
       console.log("Logged in");
-    } catch (e) {
+    } catch (e: any) {
       console.error(e);
       setErrors(e);
     }
@@ -190,7 +190,7 @@ function Register(props: RegisterProps) {
       await register(username, email, password);
       refreshUser();
       console.log("Logged in");
-    } catch (e) {
+    } catch (e: any) {
       console.error(e);
       setErrors(e);
     }
-- 
cgit v1.3.1

