Le formatting

This commit is contained in:
2023-10-19 16:50:28 -04:00
parent a062e9be06
commit b4e2cfad7a
3 changed files with 15 additions and 8 deletions

View File

@ -10,7 +10,7 @@ import {
Input,
Stack,
StackDivider,
Text
Text,
} from "@chakra-ui/react";
import { type FormEvent, useState } from "react";
@ -19,12 +19,12 @@ export async function loader({ context }: { context: RequestContext }) {
if (!currentUser)
throw new Response(null, {
status: 401
status: 401,
});
if (!(currentUser & 1 << 5))
if (!(currentUser & (1 << 5)))
throw new Response(null, {
status: 403
status: 403,
});
}
@ -32,7 +32,7 @@ export function meta() {
return [{ title: "Hammer - Car Crushers" }];
}
export default function() {
export default function () {
const [username, setUsername] = useState("");
const [uid, setUid] = useState("");
const [status, setStatus] = useState("");