diff --git a/package.json b/package.json index e3e47ea..39c25d4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "zoomaccell", + "name": "zoomaccel", "private": true, "version": "0.0.0", "type": "module", diff --git a/src/utils.ts b/src/utils.ts index d3f1a8f..b60e5df 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -9,7 +9,7 @@ interface AppState { // Persist app state to localStorage export const saveState = (state: AppState) => { try { - localStorage.setItem('zoomaccell_state', JSON.stringify(state)); + localStorage.setItem('zoomaccel_state', JSON.stringify(state)); } catch (error) { console.error('Failed to save state:', error); } @@ -17,7 +17,7 @@ export const saveState = (state: AppState) => { export const loadState = (): AppState | null => { try { - const savedState = localStorage.getItem('zoomaccell_state'); + const savedState = localStorage.getItem('zoomaccel_state'); if (savedState) { return JSON.parse(savedState); } @@ -52,7 +52,7 @@ export const exportToCSV = (rounds: Round[]) => { const curveData = maxCurvePoints > 0 ? Array.from({ length: maxCurvePoints }, (_, i) => - round.accelerationCurve?.[i]?.toFixed(2) || '') + round.accelerationCurve?.[i]?.toFixed(2) || '') : []; return [...baseData, ...curveData];