From 4c2fd7bba58bf06ef97d6fb2ce1f31469273dd93 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 22 Apr 2026 02:37:29 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Fix:=20Correct=20user=20role=20v?= =?UTF-8?q?alue=20from=20manager=20to=20accountant=20to=20match=20DB=20enu?= =?UTF-8?q?m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/staff/StaffPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/staff/StaffPage.tsx b/frontend/src/pages/staff/StaffPage.tsx index b2b8391..7a957b6 100644 --- a/frontend/src/pages/staff/StaffPage.tsx +++ b/frontend/src/pages/staff/StaffPage.tsx @@ -19,7 +19,7 @@ export const StaffPage = () => { const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); - const [role, setRole] = useState('manager'); + const [role, setRole] = useState('accountant'); const [isSubmitting, setIsSubmitting] = useState(false); const fetchStaff = async () => { @@ -237,7 +237,7 @@ export const StaffPage = () => { onChange={e => setRole(e.target.value)} className="w-full bg-slate-800 border border-slate-700 rounded-xl px-4 py-3 outline-none focus:border-emerald-500/50 transition-all text-white appearance-none cursor-pointer" > - +