diff --git a/src/hooks/report/useProductivity.ts b/src/hooks/report/useProductivity.ts index dd0c80e..085b3a7 100644 --- a/src/hooks/report/useProductivity.ts +++ b/src/hooks/report/useProductivity.ts @@ -84,7 +84,8 @@ export const useProductivity = ( ...tempResults.slice(existingUserIndex + 1, tempResults.length), ]; } else { - tempResults = tempResults.length === 0 ? result : [...tempResults, newData]; + tempResults = + tempResults.length === 0 ? [newData] : [...tempResults, newData]; } }); } catch (error) {