Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Fix reset to monitoring state issue #816

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

henrytao-me
Copy link
Contributor

This PR fixes reset to monitoring state issue by keeping lastChecked.

Resolves #813

@henrytao-me henrytao-me requested a review from a team as a code owner July 21, 2020 15:53
@henrytao-me henrytao-me force-pushed the issue/813/reset-to-monitoring branch from d79c79b to f513217 Compare July 21, 2020 15:54
@@ -329,15 +336,15 @@ export class ExposureNotificationService {
// Let's use device timezone for resetting exposureStatus for now
// Ref https://github.com/cds-snc/covid-shield-mobile/issues/676
if (daysBetween(today, cycleEndsAt) <= 0) {
this.exposureStatus.set({type: 'monitoring'});
this.exposureStatus.set({type: 'monitoring', lastChecked: currentStatus.lastChecked});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Carry on lastChecked but still reset other props.

Copy link
Collaborator

@smcmurtry smcmurtry left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@henrytao-me henrytao-me merged commit 9c40879 into master Jul 21, 2020
@henrytao-me henrytao-me deleted the issue/813/reset-to-monitoring branch July 21, 2020 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The app changes to exposed state after being diagnosed 14 days
2 participants