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 =
timeSpanItem.recurrence !== null && timeSpanItem.recurrence !== undefined;
const recurrene = hasRecurrence
const recurrence = hasRecurrence
? TimeSpanRecurrenceType[timeSpanItem.recurrence]
: null;
@@ -761,7 +761,7 @@ export class ApiResponse<T> {
);
}
if (recurrene === undefined) {
if (recurrence === undefined) {
throw new Error(
`${
timeSpanItem.recurrence as string
@@ -772,7 +772,7 @@ export class ApiResponse<T> {
return new TimeSpanData(
timeSpanItem.quantity,
increment,
recurrene,
recurrence,
endAfterOccurrences,
endByDate
);