Skip to content

Commit

Permalink
Exclude RI HEAR Rebates (#186)
Browse files Browse the repository at this point in the history
Do not merge until
rewiringamerica/api.rewiringamerica.org#580 is
released

## Description

Now that RI has rolled out their HEAR rebates and we've incorporated
them into the API
([here](rewiringamerica/api.rewiringamerica.org#580)),
we should hide the generic HEAR card

## Test Plan

- look up any RI-based zip code (e.g. 02903)
- ensure that the generic HEAR card isn't appearing
  • Loading branch information
veekas authored Sep 23, 2024
1 parent 3774d55 commit d760bd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions cypress/e2e/state-calculator.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ describe('rewiring-america-state-calculator', () => {

cy.selectProjects(['hvac']);

cy.get('rewiring-america-state-calculator')
.shadow()
.contains('Discount off a heat pump');

cy.get('rewiring-america-state-calculator')
.shadow()
.contains('$1,000/ton off an air source heat pump');
Expand Down
2 changes: 1 addition & 1 deletion src/ira-rebates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ 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(['NY']);
const HEAR_EXCLUDE_STATES = new Set(['NY', 'RI']);
const HER_EXCLUDE_STATES = new Set(['ME', 'WI']);

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

0 comments on commit d760bd6

Please sign in to comment.