🚀 Fix: Correct user role value from manager to accountant to match DB enum

This commit is contained in:
Hamza-Ayed
2026-04-22 02:37:29 +03:00
parent c3f3d940e5
commit 4c2fd7bba5

View File

@@ -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"
>
<option value="manager">محاسب (عرض ومعالجة)</option>
<option value="accountant">محاسب (عرض ومعالجة)</option>
<option value="admin">مدير نظام (صلاحيات كاملة)</option>
</select>
</div>