Fix default date range setting.

This commit is contained in:
Mike Cao committed 2022-03-01 22:02:31 -08:00
1 parent 69b81880cb
commit 7a3c1e9faa
4 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ export const doNotTrack = () => {
};
export const setItem = (key, data, session) => {
if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && data) {
(session ? sessionStorage : localStorage).setItem(key, JSON.stringify(data));
}
};