Skip to content

Commit

Permalink
Code correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed May 30, 2024
1 parent 851ce12 commit eb9083f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface HeaderProps {
collectionSlug: string;
aboutButtonText: string;
showScore: boolean;
totalScore: BigInteger;
totalScore: Number;
scoreClass: string;
scoreLabel: string;
noScoreLabel: string;
Expand Down Expand Up @@ -87,7 +87,7 @@ export const Header: React.FC<HeaderProps> = ({ nextExperimentSlug, nextExperime
{aboutButtonText && <Link className="btn btn-lg btn-outline-primary" to={`/collection/${collectionSlug}/about`}>{aboutButtonText}</Link>}
</nav>
</div>
{showScore, totalScore !== 0 && (
{showScore && totalScore !== 0 && (
<div className="results">
<Score
score={totalScore}
Expand All @@ -99,7 +99,7 @@ export const Header: React.FC<HeaderProps> = ({ nextExperimentSlug, nextExperime
/>
</div>
)}
{showScore, totalScore === 0 && (
{showScore && totalScore === 0 && (
<h3>{noScoreLabel}</h3>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export interface Header {
nextExperimentButtonText: string;
aboutButtonText: string;
showScore: boolean;
totalScore: BigInteger;
totalScore: Number;
};

export default interface Theme {
Expand Down

0 comments on commit eb9083f

Please sign in to comment.