🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Update past minutes handling in store to account for time differences
Bill Yang17689b17e1c9
diff --git a/client/src/lib/store.ts b/client/src/lib/store.tsindex 899550659..53705fbea 100644--- a/client/src/lib/store.ts+++ b/client/src/lib/store.ts@@ -165,8 +165,8 @@ export const useStore = create<Store>((set) => ({previousTime = {mode: "past-minutes",- pastMinutesStart: time.pastMinutesStart,- pastMinutesEnd: time.pastMinutesEnd,+ pastMinutesStart: time.pastMinutesStart + timeDiff,+ pastMinutesEnd: time.pastMinutesEnd + timeDiff,};} else if (time.mode === "range") {const timeRangeLength =