Skip to content

Commit

Permalink
Merge pull request #205 from BPR-Data-Team/LoganZT1-patch-1
Browse files Browse the repository at this point in the history
Key Race replacement
  • Loading branch information
arielshif authored Oct 5, 2024
2 parents 6930115 + 50c7693 commit 3498843
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/modules/KeyRacesModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { useEffect, useState } from "react";

export const races = [
'Washington District 3',
'Pennsylvania Presidential',
'North Carolina Gubernatorial',
'New Hampshire Gubernatorial',
'Ohio Senate',
Expand All @@ -27,9 +27,9 @@ export default function KeyRacesModule(props: KeyRacesModuleProps): JSX.Element

function handleClick(race: string){
if (race === races[0]){
props.setRaceType(RaceType.House);
props.setState(State.Washington);
props.setDistrict(3);
props.setRaceType(RaceType.Presidential);
props.setState(State.Pennsylvania);
props.setDistrict(0);
}
if (race === races[1]) {
props.setRaceType(RaceType.Gubernatorial);
Expand Down

0 comments on commit 3498843

Please sign in to comment.