fix: incorrectly spelled variable name corrected
This commit is contained in:
@@ -738,7 +738,7 @@ export class ApiResponse<T> {
|
|||||||
const hasRecurrence =
|
const hasRecurrence =
|
||||||
timeSpanItem.recurrence !== null && timeSpanItem.recurrence !== undefined;
|
timeSpanItem.recurrence !== null && timeSpanItem.recurrence !== undefined;
|
||||||
|
|
||||||
const recurrene = hasRecurrence
|
const recurrence = hasRecurrence
|
||||||
? TimeSpanRecurrenceType[timeSpanItem.recurrence]
|
? TimeSpanRecurrenceType[timeSpanItem.recurrence]
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
@@ -761,7 +761,7 @@ export class ApiResponse<T> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recurrene === undefined) {
|
if (recurrence === undefined) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`${
|
`${
|
||||||
timeSpanItem.recurrence as string
|
timeSpanItem.recurrence as string
|
||||||
@@ -772,7 +772,7 @@ export class ApiResponse<T> {
|
|||||||
return new TimeSpanData(
|
return new TimeSpanData(
|
||||||
timeSpanItem.quantity,
|
timeSpanItem.quantity,
|
||||||
increment,
|
increment,
|
||||||
recurrene,
|
recurrence,
|
||||||
endAfterOccurrences,
|
endAfterOccurrences,
|
||||||
endByDate
|
endByDate
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user