Skip to content

Commit 4b85b2b

Browse files
committed
Feature: Fix time calculation
1 parent c152728 commit 4b85b2b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

build/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/converters/utils/prepareResponseTime.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,17 @@ export const prepareResponseTime = (
3838
},
3939
getMultipleValuesInput("HOLIDAYS")
4040
)
41-
);
41+
)
42+
.filter((el) => typeof el === "number") as number[];
4243
set(
4344
collection,
4445
[userKey, key, "timeWaitingForRepeatedReview"],
4546
[
46-
...get(collection, [userKey, key, "timeWaitingForRepeatedReview"], []),
47+
...get(
48+
collection,
49+
[userKey, key, "timeWaitingForRepeatedReview"],
50+
[]
51+
),
4752
...awaitingResponse,
4853
]
4954
);

0 commit comments

Comments
 (0)