diff --git a/package.json b/package.json index 6197ba2c4..e422bb210 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linkedout-front", - "version": "2.6.1", + "version": "2.6.2", "description": "", "main": "index.js", "engines": { diff --git a/src/components/cards/NumberCard.tsx b/src/components/cards/NumberCard.tsx index 7feebeb50..4dc20abae 100644 --- a/src/components/cards/NumberCard.tsx +++ b/src/components/cards/NumberCard.tsx @@ -12,12 +12,17 @@ const AnimatedNumber = ({ value }: { value: number | string }) => { } return (
- {isVisible && typeof value === 'number' ? ( - + {isVisible ? ( + <> + {typeof value === 'number' ? ( + + ) : ( + <>{value} + )} + ) : ( 0 )} - {isVisible && typeof value !== 'number' ? <>{value} : 0}
); }} diff --git a/src/components/partials/NumberPartial.tsx b/src/components/partials/NumberPartial.tsx index ba23fd98e..a88d5d3ea 100644 --- a/src/components/partials/NumberPartial.tsx +++ b/src/components/partials/NumberPartial.tsx @@ -4,12 +4,16 @@ import { NumberGrid } from 'src/components/partials/NumberGrid'; import { Section } from 'src/components/utils'; const staticNumbers = [ - { value: 400, description: 'candidats accompagnés', animated: true }, + { value: 400, description: 'candidats accompagnés', animate: true }, { value: '72%', description: 'de sorties positives en 2022', }, - { value: 700, description: "entreprises mobilisées dans l'inclusion" }, + { + value: 700, + description: "entreprises mobilisées dans l'inclusion", + animate: true, + }, ]; export const NumberPartial = () => {