diff --git a/TASVideos/Pages/Submissions/Submit.cshtml.cs b/TASVideos/Pages/Submissions/Submit.cshtml.cs index cac0ee377..a507c7ef9 100644 --- a/TASVideos/Pages/Submissions/Submit.cshtml.cs +++ b/TASVideos/Pages/Submissions/Submit.cshtml.cs @@ -213,7 +213,11 @@ public async Task SubmissionAllowed(int userId) && s.SubmitterId == userId && s.CreateTimestamp > DateTime.UtcNow.AddDays(-_settings.SubmissionRate.Days)) .ToListAsync(); - _earliestTimestamp = subs.Select(s => s.CreateTimestamp).Min(); + if (subs.Count > 0) + { + _earliestTimestamp = subs.Select(s => s.CreateTimestamp).Min(); + } + return subs.Count < _settings.SubmissionRate.Submissions; } }