From 0f58867c492194c03ee55cce1f704d37c5c88b65 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Tue, 21 Feb 2023 21:13:51 -0600 Subject: [PATCH] fix: incorrectly spelled variable name corrected --- src/models/ApiResponse.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/ApiResponse.ts b/src/models/ApiResponse.ts index 57c35e7..76cb555 100644 --- a/src/models/ApiResponse.ts +++ b/src/models/ApiResponse.ts @@ -738,7 +738,7 @@ export class ApiResponse { 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 { ); } - if (recurrene === undefined) { + if (recurrence === undefined) { throw new Error( `${ timeSpanItem.recurrence as string @@ -772,7 +772,7 @@ export class ApiResponse { return new TimeSpanData( timeSpanItem.quantity, increment, - recurrene, + recurrence, endAfterOccurrences, endByDate );