Skip to content
Snippets Groups Projects
Commit c68344a3 authored by MarcusStorvangJonassen's avatar MarcusStorvangJonassen
Browse files

Fixed so Stepcounter is not going up and down when switching pages

parent f1c241db
No related branches found
No related tags found
1 merge request!37Frontend ui
......@@ -50,7 +50,10 @@ namespace BeSafePlus
await Task.WhenAll(loadStepGoalTask, loadWeeklyStepsTask, loadMonthlyStepsTask, getStepCountTask);
_viewModel.AccumulatedSteps = await getStepCountTask;
if (_viewModel.AccumulatedSteps == 0)
{
_viewModel.AccumulatedSteps = await getStepCountTask;
}
LoadChart();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment