MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / getPlanCache

Function getPlanCache

src/components/CropPlanningSection.tsx:1075–1082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1073 const factor = 10 ** digits;
1074 return Math.round(value * factor) / factor;
1075}
1076
1077function getPlanCache(): Record<string, { data: CropPlan; timestamp: number }> {
1078 try {
1079 const cached = localStorage.getItem(CROP_PLAN_CACHE_KEY);
1080 return cached ? JSON.parse(cached) : {};
1081 } catch {
1082 return {};
1083 }
1084}
1085

Callers 2

setPlanCacheFunction · 0.85
CropPlanningSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected