Skip to content

Commit 0befbe2

Browse files
committed
fix: cleanup merged code
1 parent a930cfa commit 0befbe2

1 file changed

Lines changed: 7 additions & 19 deletions

File tree

src/components/CippWizard/CippWizardVacationConfirmation.jsx

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,20 @@ export const CippWizardVacationConfirmation = (props) => {
115115
endDate: values.endDate,
116116
reference: values.reference || null,
117117
postExecution: values.postExecution || [],
118-
};
118+
}
119119

120-
if (values.forwardOption === "internalAddress") {
121-
forwardingData.ForwardInternal = values.forwardInternal;
120+
if (values.forwardOption === 'internalAddress') {
121+
forwardingData.ForwardInternal = values.forwardInternal
122122
}
123123

124-
if (values.forwardOption === "ExternalAddress") {
125-
forwardingData.ForwardExternal = values.forwardExternal;
124+
if (values.forwardOption === 'ExternalAddress') {
125+
forwardingData.ForwardExternal = values.forwardExternal
126126
}
127127

128128
forwardingVacation.mutate({
129-
url: "/api/ExecScheduleForwardingVacation",
129+
url: '/api/ExecScheduleForwardingVacation',
130130
data: forwardingData,
131-
});
131+
})
132132
}
133133

134134
if (values.enableOOO) {
@@ -189,18 +189,6 @@ export const CippWizardVacationConfirmation = (props) => {
189189
return 'Not set'
190190
}
191191

192-
const formatForwardingTarget = () => {
193-
if (values.forwardOption === "internalAddress") {
194-
return values.forwardInternal?.label || values.forwardInternal?.value || values.forwardInternal || "Not set";
195-
}
196-
197-
if (values.forwardOption === "ExternalAddress") {
198-
return values.forwardExternal || "Not set";
199-
}
200-
201-
return "Not set";
202-
};
203-
204192
return (
205193
<Stack spacing={3}>
206194
{/* Summary */}

0 commit comments

Comments
 (0)