diff --git a/TASVideos.Data/Helpers/SubmissionHelper.cs b/TASVideos.Data/Helpers/SubmissionHelper.cs index 14309c9f7..2acf2cac3 100644 --- a/TASVideos.Data/Helpers/SubmissionHelper.cs +++ b/TASVideos.Data/Helpers/SubmissionHelper.cs @@ -66,9 +66,9 @@ public static bool JudgeIsClaiming(SubmissionStatus oldS, SubmissionStatus newS) return oldS != SubmissionStatus.JudgingUnderWay && newS == SubmissionStatus.JudgingUnderWay; } - public static bool JudgeIsUnclaiming(SubmissionStatus oldS, SubmissionStatus newS) + public static bool JudgeIsUnclaiming(SubmissionStatus newS) { - return oldS == SubmissionStatus.JudgingUnderWay && newS == SubmissionStatus.New; + return newS == SubmissionStatus.New; } public static bool PublisherIsClaiming(SubmissionStatus oldS, SubmissionStatus newS) diff --git a/TASVideos/Pages/Submissions/Edit.cshtml.cs b/TASVideos/Pages/Submissions/Edit.cshtml.cs index de3bc30ca..fc0012d72 100644 --- a/TASVideos/Pages/Submissions/Edit.cshtml.cs +++ b/TASVideos/Pages/Submissions/Edit.cshtml.cs @@ -231,7 +231,7 @@ public async Task OnPost() { submission.Judge = await db.Users.SingleAsync(u => u.UserName == userName); } - else if (SubmissionHelper.JudgeIsUnclaiming(submission.Status, Submission.Status)) + else if (SubmissionHelper.JudgeIsUnclaiming(Submission.Status)) { submission.Judge = null; }