Skip to content

Commit

Permalink
Merge pull request #106 from google/issue_104
Browse files Browse the repository at this point in the history
Issue 104
  • Loading branch information
rundong08 authored Nov 5, 2021
2 parents a6617c1 + 676c6ea commit 9ce9d22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taqo_client/lib/pages/survey/survey_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ class _SurveyPageState extends State<SurveyPage> {
final alarm = entry.value;
if (alarm.experiment.id == _experiment.id &&
alarm.experimentGroup.name == _experimentGroup.name &&
alarm.time.isBefore(DateTime.now())) {
alarm.time.isBefore(DateTime.now()) &&
!alarm.time.add(Duration(minutes: alarm.action.timeout)).isBefore(DateTime.now())) {
// This alarm is the timeout for the notification
// The alarm for the notification was already cleared when it fired
_event.actionId = alarm.action.id;
Expand Down

0 comments on commit 9ce9d22

Please sign in to comment.