Skip to content

Commit

Permalink
make sure formatStartDate always returns something
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomEtc committed Sep 5, 2023
1 parent fcfb1cb commit da1e0f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/incentive-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ function formatStartDate(start_date: number, type: IncentiveType) {
} else {
return html`${start_date.toString()}`;
}
} else {
// while we technically don't expect another IncentiveType, fall back to date here if needed:
return html`${start_date.toString()}`;
}
}

Expand Down

0 comments on commit da1e0f9

Please sign in to comment.