mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
fix of the main problem
This commit is contained in:
@@ -118,13 +118,14 @@ const ClockifyTaskForm = ({timerOn, setTimerOn, signedIn, apiKey, setApiKey, tas
|
||||
|
||||
data.forEach((project, index) => {
|
||||
if (project.clientName !== "" && !project.archived) {
|
||||
|
||||
if (!data.clients) {
|
||||
data.clients = {[project.clientName]: [project]}
|
||||
} else {
|
||||
if (!data.clients[project.clientName]) {
|
||||
data.clients[project.clientName] = []
|
||||
}
|
||||
data.clients[project.clientName].push(project)
|
||||
}
|
||||
|
||||
project.archived = true
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user