diff --git a/src/lib/todoist/local-rest-adapter/conf-cache/index.ts b/src/lib/todoist/local-rest-adapter/conf-cache/index.ts index 98accfc1..e756aa5e 100644 --- a/src/lib/todoist/local-rest-adapter/conf-cache/index.ts +++ b/src/lib/todoist/local-rest-adapter/conf-cache/index.ts @@ -27,7 +27,7 @@ function deserialize(json: string): GenericStore { const stored = JSON.parse(json); // Only initialize store the first time running a run - if (Object.is(timestampStore.store, {})) { + if (Object.keys(timestampStore.store).length === 0) { timestampStore.store = stored._cache; } delete stored._cache;