Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small fix

Steven Tey3fa5cbd0b696
diff --git a/apps/web/lib/analytics/constants.ts b/apps/web/lib/analytics/constants.ts
index e5056bf281..af96cde52b 100644
--- a/apps/web/lib/analytics/constants.ts
+++ b/apps/web/lib/analytics/constants.ts
@@ -10,10 +10,6 @@ export const intervals = [
] as const;
export const INTERVAL_DISPLAYS = [
- {
- display: "Last hour",
- value: "1h",
- },
{
display: "Last 24 hours",
value: "24h",
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index d34bc34a4b..f1edb7e67c 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -120,9 +120,7 @@ export default function Toggle() {
},
});
}}
- presets={INTERVAL_DISPLAYS.filter(
- ({ value }) => value !== "1h",
- ).map(({ display, value }) => {
+ presets={INTERVAL_DISPLAYS.map(({ display, value }) => {
const start = INTERVAL_DATA[value].startDate;
const end = new Date();