Fix match-details wrongly detecting resending

This commit is contained in:
Kalle
2022-03-12 22:28:08 +02:00
parent dc3e3b055d
commit e7bf6b80f8

View File

@@ -76,7 +76,9 @@ export const action: ActionFunction = async ({ request }) => {
if (!match) {
return new Response("Invalid match id", { status: 400 });
}
if (match.stages[0].details) {
// we already have details for this match
if (match.stages[0].details.length > 0) {
return new Response(null, { status: 200 });
}