From f13129350f780c70126f19283bdc8d4d36a5bd71 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 21 Apr 2022 15:09:46 +0200 Subject: [PATCH] Error display, minor details --- src/client/src/LoginPage.js | 4 ++++ src/client/src/TournamentOverview.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/src/LoginPage.js b/src/client/src/LoginPage.js index f723b63..2e819f4 100644 --- a/src/client/src/LoginPage.js +++ b/src/client/src/LoginPage.js @@ -6,6 +6,10 @@ import ErrorSnackbar from "./components/ErrorSnackbar"; import {Button, Textfield, Stack, InputLabel, Paper, Typography} from '@mui/material'; +function ProfileView() { + return "lol"; +} + export default function LoginPage() { return ( <> diff --git a/src/client/src/TournamentOverview.js b/src/client/src/TournamentOverview.js index ae44728..49d4aba 100644 --- a/src/client/src/TournamentOverview.js +++ b/src/client/src/TournamentOverview.js @@ -122,7 +122,7 @@ function BracketViewer(props){ .then(data => { if (data.status !== "OK") { // Do your error thing - console.error(data); + showError(data.data); return; } let tournament = data.data;