🚀 Fix: Correct user role value from manager to accountant to match DB enum
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user