We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320744e commit cd50134Copy full SHA for cd50134
frontend/src/components/home/widgets/AppOfTheDayWidget.tsx
@@ -17,11 +17,13 @@ export function AppOfTheDayWidget() {
17
return x - Math.floor(x);
18
}
19
20
+ // filter out apps which already have a widget
21
+ const excludedAppIds = ["alby-go", "zapplanner"];
22
+ const apps = suggestedApps.filter((a) => !excludedAppIds.includes(a.id));
23
+
24
const daysSinceEpoch = Math.floor(Date.now() / (1000 * 60 * 60 * 24));
- const todayIndex = Math.floor(
- seededRandom(daysSinceEpoch) * suggestedApps.length
- );
- const app = suggestedApps[todayIndex];
25
+ const todayIndex = Math.floor(seededRandom(daysSinceEpoch) * apps.length);
26
+ const app = apps[todayIndex];
27
28
return (
29
<Card>
0 commit comments