Skip to content

BUG-19-streak-calculation-problem#20

Open
Zahlkovsk1 wants to merge 5 commits intoSM-004-Streakfrom
19-streak-calculation-problem
Open

BUG-19-streak-calculation-problem#20
Zahlkovsk1 wants to merge 5 commits intoSM-004-Streakfrom
19-streak-calculation-problem

Conversation

@Zahlkovsk1
Copy link
Copy Markdown
Contributor

StreakView was updated, added existing variable that replaces timeSpent, so now the streak Calculation is working as expected

…ting variable that replaces timeSpent, so now the streak Calculation is working as expected
Copy link
Copy Markdown
Member

@g-cqd g-cqd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove timeSpent is the variable is unused.
Can you create a view model for the StreakView and add some tests to validate the calculation please?

} else if tab.id == .streakGoal {
VStack {
StreakView(timeSpent: timeSpent ?? 0.0)
StreakView(sessions: sessions, timeSpent: timeSpent ?? 0.0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if timeSpent is not used, why keeping it?

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants