Skip to content

Commit

Permalink
can't change role expiry date
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Feb 13, 2024
1 parent 5ebfae1 commit 7be9a75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/pages/RoleForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,7 @@ export const RoleForm = () => {

<SwitchField name={"roleExpiryDate"}
value={customRoleExpiryDate}
onChange={() => {
setCustomRoleExpiryDate(!customRoleExpiryDate);
setRole({...role, defaultExpiryDays: 366})
}}
onChange={() => setCustomRoleExpiryDate(!customRoleExpiryDate)}
label={I18n.t("invitations.roleExpiryDateQuestion")}
info={I18n.t("invitations.roleExpiryDateInfo", {
expiry: displayExpiryDate(futureDate(role.defaultExpiryDays, new Date()))
Expand Down

0 comments on commit 7be9a75

Please sign in to comment.