Skip to content

Commit

Permalink
Submission/Edit - account for the possibility that a replaced submiss…
Browse files Browse the repository at this point in the history
…ion file has no hash when the previous one did
  • Loading branch information
adelikat committed Dec 2, 2024
1 parent 995789e commit 45383af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TASVideos/Pages/Submissions/Edit.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ public async Task<IActionResult> OnPost()
submission.HashType = parseResult.Hashes.First().Key.ToString();
submission.Hash = parseResult.Hashes.First().Value;
}
else
{
submission.HashType = null;
submission.Hash = null;
}
}

if (SubmissionHelper.JudgeIsClaiming(submission.Status, Submission.Status))
Expand Down

0 comments on commit 45383af

Please sign in to comment.