Skip to content

Commit

Permalink
Fixed this Accredited Goal component
Browse files Browse the repository at this point in the history
  • Loading branch information
santi-g-s committed May 22, 2023
1 parent 455dc9c commit 25156d0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export const createChartData = (
{
label: 'Current',
data: [totalAccreditedCities],
backgroundColor: 'rgb(121, 174, 234)',
backgroundColor: COLORS.primaryBlue,
// barThickness: 30,
},
{
label: 'Goal',
data: [totalNonAccreditedCities],
backgroundColor: COLORS.primaryBlue,
backgroundColor: COLORS.lightGray,
// barThickness: 30,
},
],
Expand All @@ -86,7 +86,7 @@ function ActiveCitiesWidget({ cities1 }: DefaultWidgetProps) {
for (let i = 0; i < cityData?.data.length; i++) {
totalCities += 1;
if (
cityData?.data[i].isAccredited !== 0 &&
cityData?.data[i].isAccredited &&
cityData?.data[i].isAccredited !== null
) {
totalAccreditedCities += 1;
Expand Down

0 comments on commit 25156d0

Please sign in to comment.