CFE-2 write tests

This commit is contained in:
2023-10-29 10:38:50 +03:30
parent 45a9c3b2a0
commit fafc61b320
11 changed files with 152 additions and 34 deletions

View File

@@ -29,8 +29,8 @@ const useCallerHistory = (call_id, phone_number, max_size) => {
return {
firstItemOfHistory: validData.length === 0 ? false : validData[0],
historyList: validData.length < 2 ? false : validData.slice(1),
isLoadingHistoryList: true,
errorHistoryList: false
isLoadingHistoryList: isLoading,
errorHistoryList: !data
}
};