From e7bf6b80f8e7be85025c9cc9fd69e8a9aa7f4858 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 12 Mar 2022 22:28:08 +0200 Subject: [PATCH] Fix match-details wrongly detecting resending --- app/routes/match-details.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routes/match-details.ts b/app/routes/match-details.ts index e3e4cf767..c7b1f0c0b 100644 --- a/app/routes/match-details.ts +++ b/app/routes/match-details.ts @@ -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 }); }