fix: incorrectly spelled variable name corrected

This commit is contained in:
Stevan Freeborn
2023-02-21 21:13:51 -06:00
parent 0aa840873c
commit 0f58867c49
+3 -3
View File
@@ -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
); );