Skip to content

Commit

Permalink
fixes bug with unselected offboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Nov 18, 2023
1 parent 6c145b7 commit bc2bf02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/views/identity/administration/OffboardingWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const OffboardingWizard = () => {
removeMobile: values.RemoveMobile,
keepCopy: values.keepCopy,
removePermissions: values.removePermissions,
Scheduled: values.Scheduled.enabled ? { enabled: true, date: unixTime } : { enabled: false },
PostExecution: values.Scheduled.enabled
Scheduled: values.Scheduled?.enabled ? { enabled: true, date: unixTime } : { enabled: false },
PostExecution: values.Scheduled?.enabled
? { webhook: values.webhook, psa: values.psa, email: values.email }
: '',
}
Expand All @@ -94,7 +94,6 @@ const OffboardingWizard = () => {
title="Tenant Choice"
description="Choose the tenant in which to offboard a user"
>
{console.log(currentSettings.offboardingDefaults)}
<center>
<h3 className="text-primary">Step 1</h3>
<h5 className="card-title mb-4">Choose a tenant</h5>
Expand Down

0 comments on commit bc2bf02

Please sign in to comment.