Error display, minor details

This commit is contained in:
Felix Albrigtsen 2022-04-21 15:09:46 +02:00
parent 54f98beb40
commit f13129350f
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@ import ErrorSnackbar from "./components/ErrorSnackbar";
import {Button, Textfield, Stack, InputLabel, Paper, Typography} from '@mui/material'; import {Button, Textfield, Stack, InputLabel, Paper, Typography} from '@mui/material';
function ProfileView() {
return "lol";
}
export default function LoginPage() { export default function LoginPage() {
return ( return (
<> <>

View File

@ -122,7 +122,7 @@ function BracketViewer(props){
.then(data => { .then(data => {
if (data.status !== "OK") { if (data.status !== "OK") {
// Do your error thing // Do your error thing
console.error(data); showError(data.data);
return; return;
} }
let tournament = data.data; let tournament = data.data;