1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-26 20:54:21 +01:00

(bug) logout error in payment_schedules page

This commit is contained in:
Du Peng 2023-04-17 12:20:36 +02:00
parent b4250b2ce6
commit acc081a413

View File

@ -54,7 +54,7 @@ export const PaymentScheduleItemActions: React.FC<PaymentScheduleItemActionsProp
* Check if the current operator has administrative rights or is a normal member
*/
const isPrivileged = (): boolean => {
return (operator.role === 'admin' || operator.role === 'manager');
return (operator?.role === 'admin' || operator?.role === 'manager');
};
/**