feat: updated jumbotron sample range and styles
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-07 19:10:44 +01:00
parent b3ac86b5cf
commit d809001929
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -153,7 +153,8 @@ export const getJumbotronProblem = (db: DatabaseInternal): Promise<Problem | nul
const mostRecentProblems = Object.values(state.problems)
.filter(p => !p.deleted)
.sort((p1, p2) => new Date(p2.createdAt).getTime() - new Date(p1.createdAt).getTime())
.slice(0, 3)
// NOTE: Previously, we only showed only one of the 3 most recent problems
// .slice(0, 3)
if (mostRecentProblems.length === 0) return null