diff --git a/frontend/src/components/Header/Header.tsx b/frontend/src/components/Header/Header.tsx index 6be6346ac..be16e031a 100644 --- a/frontend/src/components/Header/Header.tsx +++ b/frontend/src/components/Header/Header.tsx @@ -10,7 +10,7 @@ interface HeaderProps { collectionSlug: string; aboutButtonText: string; showScore: boolean; - totalScore: BigInteger; + totalScore: Number; scoreClass: string; scoreLabel: string; noScoreLabel: string; @@ -87,7 +87,7 @@ export const Header: React.FC = ({ nextExperimentSlug, nextExperime {aboutButtonText && {aboutButtonText}} - {showScore, totalScore !== 0 && ( + {showScore && totalScore !== 0 && (
= ({ nextExperimentSlug, nextExperime />
)} - {showScore, totalScore === 0 && ( + {showScore && totalScore === 0 && (

{noScoreLabel}

)} diff --git a/frontend/src/types/Theme.ts b/frontend/src/types/Theme.ts index 9b674bd63..74727d05c 100644 --- a/frontend/src/types/Theme.ts +++ b/frontend/src/types/Theme.ts @@ -2,7 +2,7 @@ export interface Header { nextExperimentButtonText: string; aboutButtonText: string; showScore: boolean; - totalScore: BigInteger; + totalScore: Number; }; export default interface Theme {