Skip to content

Commit 68b07d0

Browse files
committed
chore: fix double submission, lower res images
1 parent ec6312c commit 68b07d0

14 files changed

+6
-3
lines changed

app/routes/sheets.$sheetId.submissions.$submissionId.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function Submission() {
3535
</span>
3636
</div>
3737
<h2 className="text-center font-bold pt-3">
38-
Tie Breaker: {submission?.sheet?.tieBreakerQuestion}
38+
Tie Breaker: {submission?.tieBreaker}
3939
</h2>
4040
<SubmissionTable submission={submission} />
4141
</>

app/routes/sheets.$sheetId.submissions._index/route.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ActionFunctionArgs,
55
redirect,
66
} from "@remix-run/node";
7-
import { Form, useLoaderData } from "@remix-run/react";
7+
import { Form, useLoaderData, useNavigation } from "@remix-run/react";
88
import invariant from "tiny-invariant";
99
import { readSheet } from "~/models/sheet.server";
1010
import {
@@ -66,9 +66,12 @@ export const action = async ({ params, request }: ActionFunctionArgs) => {
6666
export default function Sheet() {
6767
const { sheet } = useLoaderData<typeof loader>();
6868
const [selections, setSelections] = useState<object>({});
69+
const navigation = useNavigation();
6970
const propositionCount = sheet.propositions.length;
7071
const selectionCount = Object.keys(selections).length;
71-
const disabled = propositionCount != selectionCount;
72+
const isSubmitting =
73+
navigation.formAction === `/sheets/${sheet.id}/submissions?index`;
74+
const disabled = propositionCount != selectionCount || isSubmitting;
7275
return (
7376
<div className="h-screen">
7477
<Form method="post">

assets/img/Blake & Taylor.png

-2.44 MB
Binary file not shown.

assets/img/New Blake & Taylor.png

548 KB
Loading

assets/img/New Reba.png

229 KB
Loading

assets/img/Purdy vs Mahomes.png

-1 MB
Binary file not shown.

assets/img/Reba Anthem.png

-1.16 MB
Binary file not shown.

assets/img/Usher and Bieber.png

-282 KB
Binary file not shown.

assets/img/Usher in red.png

-381 KB
Binary file not shown.

assets/img/new jb usher.png

319 KB
Loading

assets/img/new kelce kittle.png

219 KB
Loading

assets/img/new purdy mahomes.png

270 KB
Loading

assets/img/new usher red.png

307 KB
Loading

assets/img/tight ends.png

-2.12 MB
Binary file not shown.

0 commit comments

Comments
 (0)