Describe the bug
When the user is on the sub-goal page and navigates away, for instance, to the "My Time" page, the sub-goal state is not cleared. Consequently, if the user returns to the sub-goal page, the same state is pushed to the sub-goal state array, causing bugs including the one mentioned here (https://github.com/tijlleenders/ZinZen/pull/2010#pullrequestreview-2217007450).
Describe the bug When the user is on the sub-goal page and navigates away, for instance, to the "My Time" page, the sub-goal state is not cleared. Consequently, if the user returns to the sub-goal page, the same state is pushed to the sub-goal state array, causing bugs including the one mentioned here (https://github.com/tijlleenders/ZinZen/pull/2010#pullrequestreview-2217007450).
Screenshots Screencast from 05-08-24 01:02:10 PM IST.webm