From 81893ae3e823a588e3f2cafb20acd24512284274 Mon Sep 17 00:00:00 2001 From: Mattias Date: Sun, 17 Mar 2024 16:24:09 +0100 Subject: [PATCH] Minor fixes --- frontend/src/Components/Register.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/Components/Register.tsx b/frontend/src/Components/Register.tsx index b0527da..f3d773e 100644 --- a/frontend/src/Components/Register.tsx +++ b/frontend/src/Components/Register.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { NewUser } from "../Types/Users"; +import { NewUser } from "../Types/goTypes"; import { api } from "../API/API"; import Logo from "../assets/Logo.svg"; import Button from "./Button"; @@ -35,12 +35,11 @@ export default function Register(): JSX.Element { const [password, setPassword] = useState(""); const handleRegister = async (): Promise => { - const newUser: NewUser = { userName: username, password }; + const newUser: NewUser = { username: username, password }; await api.registerUser(newUser); // TODO: Handle errors }; return ( -