For each Active challenge a user creates, the progress should always start from 0.
However, if a user creates a private habit first, then checks in to make some progress, and deletes that habit, every active challenges joined by this user will start from the progress of the deleted habit.
Reproduction:
Create a habit, then checkin
Delete the habit using the "edit" button
Create a challenge
Join the challenge, the progress doesn't start from 0
Potential reason: new habits will probably use the id previously occupied by some other deleted habits, which caused incorrect habit progress mapping. Need to clear the progress as well when deleting a habit.
For each Active challenge a user creates, the progress should always start from 0. However, if a user creates a private habit first, then checks in to make some progress, and deletes that habit, every active challenges joined by this user will start from the progress of the deleted habit. Reproduction: