Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoder committed Aug 10, 2023
1 parent b76b5a3 commit c370c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/bank/climate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const Filtering = ({setRegions, currentRegions, setBadges, currentBadges}) => {
}
else if(currentRegions.includes(region.region)){
let tempRegions = currentRegions
tempRegions = tempBadges.filter(item => item !== region.region)
tempRegions = tempRegions.filter(item => item !== region.region)
if(tempRegions == []){
setRegions([...badges.map(x=> x.badge)])
}
Expand Down

0 comments on commit c370c7a

Please sign in to comment.