From 5a8bbcff5779946d9a225bfd2abe865fa5d42969 Mon Sep 17 00:00:00 2001 From: Chris-1010 Date: Tue, 23 Sep 2025 01:03:35 +0100 Subject: [PATCH] Add default value for RangeSlider in StatView Set `RangeSlider` values to min and max upon initial load The app was doing this before anyway, it was just not displaying it on the slider --- app/src/pages/StatView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/pages/StatView.tsx b/app/src/pages/StatView.tsx index 17663c8..87a526e 100644 --- a/app/src/pages/StatView.tsx +++ b/app/src/pages/StatView.tsx @@ -82,6 +82,7 @@ const StatView = () => { min={0} max={getDaysBetween(firstStreamDate, lastStreamDate)} step={1} + defaultValue={[0, getDaysBetween(firstStreamDate, lastStreamDate)]} // This bad boy right here onInput={(value) => { const startDate = getDaysAfter(firstStreamDate, value[0]); const endDate = getDaysAfter(firstStreamDate, value[1]);