Skip to content

Commit

Permalink
Merge pull request #224 from Eastern-Research-Group/feature/update-fo…
Browse files Browse the repository at this point in the history
…rm-status-formatting

Feature/update form status formatting
  • Loading branch information
courtneymyers authored Aug 25, 2022
2 parents 27c311d + 85f1770 commit f32677a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions app/client/src/routes/allRebates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function AllRebates() {
<br />
<TextWithTooltip
text="Form Status"
tooltip="submitted or draft"
tooltip="Draft, Edits Requested, Submitted, or Withdrawn"
/>
</th>

Expand Down Expand Up @@ -344,10 +344,16 @@ form for the fields to be displayed. */
/>
</svg>
<span className="margin-left-05">
{submissionNeedsEdits ||
submissionHasBeenWithdrawn
? bap.rebateStatus
: state}
{
submissionNeedsEdits ||
submissionHasBeenWithdrawn
? bap.rebateStatus
: state === "draft"
? "Draft"
: state === "submitted"
? "Submitted"
: state // fallback, not used
}
</span>
</span>
</td>
Expand Down

0 comments on commit f32677a

Please sign in to comment.