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

Commit

Permalink
Fix: Resetting checkins race conditions (#5799)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwalli authored Jan 13, 2023
1 parent d074fb4 commit 742fedf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class SrsSymptomsCalendarViewModel @AssistedInject constructor(
symptomStartInternal.value = startOf
}

private fun resetPreviousSubmissionConsents() = launch {
private suspend fun resetPreviousSubmissionConsents() {
try {
Timber.d("Trying to reset submission consents")
checkInRepository.apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class SrsSymptomsIntroductionViewModel @AssistedInject constructor(
fun onTruncatedDialogClick() =
events.postValue(SrsSymptomsIntroductionNavigation.GoToThankYouScreen)

private fun resetPreviousSubmissionConsents() = launch {
private suspend fun resetPreviousSubmissionConsents() {
try {
Timber.d("Trying to reset submission consents")
checkInRepository.apply {
Expand Down

0 comments on commit 742fedf

Please sign in to comment.