Updated it so an agent can't edit the commission on a corporate

This commit is contained in:
Tiago Ribeiro
2024-01-24 15:24:45 +00:00
parent 5f475fb7a7
commit fea2d311ae

View File

@@ -318,7 +318,7 @@ const UserCard = ({user, loggedInUser, onClose, onViewStudents, onViewTeachers,
type="number"
defaultValue={commissionValue || 0}
className="col-span-3"
disabled={disabled}
disabled={disabled || loggedInUser.type === "agent"}
/>
</>
) : (