From 6be776ccd273f99e1ec1039440ca1ee644f92091 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 18:11:10 +0000 Subject: [PATCH] Preserve staff name when starting a new form https://claude.ai/code/session_01MbwfxnjLA9KdFTrfzB55HM --- app/index.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/index.html b/app/index.html index 7b443a3..9346135 100644 --- a/app/index.html +++ b/app/index.html @@ -1221,13 +1221,11 @@ async function onNewForm() { const confirmed = await showConfirmModal('This will clear all current form data and start a fresh form.

Are you sure you want to continue?'); if (!confirmed) return; try { localStorage.removeItem('reimb-state'); } catch(e) {} - try { localStorage.removeItem('reimb-staff'); } catch(e) {} if (db) { const keys = await dbAllKeys(); if (Array.isArray(keys)) for (const k of keys) await dbDel(k); } const p = defaultPeriod(); - state.staff = ''; state.periodFrom = p.from; state.periodTo = p.to; state.baseCurrency = CFG['currency-base'];