Skip to content

Commit

Permalink
Exclude generic HEAR/HER cards for DC (#192)
Browse files Browse the repository at this point in the history
## Description

DC has rolled out their HEAR/HER rebates. This PR removes the "coming
soon" cards.
[Asana](https://app.asana.com/0/1207456219977120/1208649430166793/f)

This repo also doesn't appear to work with Node v20, and although we
specify 18 in the README, we don't enforce it. This PR adds an `.nvmrc`
to make that easier.

## Test Plan

check Weatherization category for a low income 20002 zip code household
to make sure that the "Expected in 2024-2025" cards don't show up
anymore
  • Loading branch information
veekas authored Nov 1, 2024
1 parent 570e63f commit 24397fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.19.1
4 changes: 2 additions & 2 deletions src/ira-rebates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const hearRebates: {
* As states launch their HEAR and HER programs, we'll want to stop showing this
* generic info to users in those states.
*/
const HEAR_EXCLUDE_STATES = new Set(['ME', 'NY', 'RI']);
const HER_EXCLUDE_STATES = new Set(['ME', 'WI']);
const HEAR_EXCLUDE_STATES = new Set(['DC', 'ME', 'NY', 'RI']);
const HER_EXCLUDE_STATES = new Set(['DC', 'ME', 'WI']);

export function getRebatesFor(response: APIResponse, msg: MsgFn): IRARebate[] {
const disclaimerText = msg(
Expand Down

0 comments on commit 24397fc

Please sign in to comment.