Skip to content

Commit

Permalink
add check for no action state
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Apr 22, 2024
1 parent 3b23d46 commit 3b0591e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion portal/static/js/src/profile.js
Expand Up @@ -1578,7 +1578,12 @@ export default (function() {
const paramActionState = getUrlParameter("trigger_action_state");
// for debugging
if (paramActionState) return paramActionState.toLowerCase();
return String(this.subStudyTriggers.data.action_state).toLowerCase();
const actionState = this.subStudyTriggers.data.action_state;
if (!actionState &&
!this.shouldDisableSubstudyPostTx() &&
this.hasSubStudyTriggers()
) return "required";
return String(actionState).toLowerCase();
},
hasMissedPostTxAction: function() {
return this.hasSubStudyTriggers() && this.getPostTxActionStatus() === "missed";
Expand Down

0 comments on commit 3b0591e

Please sign in to comment.