Skip to content

Commit

Permalink
Fix comparisons HCD data (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-kap committed Jun 19, 2023
1 parent 71d34f2 commit e270648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function spec(
for (const suffix of ["", "_per_capita"]) {
const prefix = `total_${type}`
transforms.push({
calculate: `datum['${prefix}_hcd{suffix}'] || datum['${prefix}${suffix}'] || 0`,
calculate: `datum['${prefix}_hcd${suffix}'] || datum['${prefix}${suffix}'] || 0`,
as: `${prefix}${suffix}`,
})
}
Expand Down

1 comment on commit e270648

@vercel
Copy link

@vercel vercel bot commented on e270648 Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.