fix previous score fc tooltip
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m23s
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m23s
This commit is contained in:
parent
f090c0dcbb
commit
2fc8b265d2
@ -26,6 +26,7 @@ export default function ScoreMissesBadge({ score, hideXMark }: ScoreMissesBadgeP
|
|||||||
bombCuts: (scoreImprovement.misses.bombCuts + misses.bombCuts) * -1,
|
bombCuts: (scoreImprovement.misses.bombCuts + misses.bombCuts) * -1,
|
||||||
wallsHit: (scoreImprovement.misses.wallsHit - misses.wallsHit) * -1,
|
wallsHit: (scoreImprovement.misses.wallsHit - misses.wallsHit) * -1,
|
||||||
};
|
};
|
||||||
|
const previousScoreFc = previousScoreMisses?.misses == 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center items-center">
|
<div className="flex flex-col justify-center items-center">
|
||||||
@ -48,9 +49,10 @@ export default function ScoreMissesBadge({ score, hideXMark }: ScoreMissesBadgeP
|
|||||||
badCuts={previousScoreMisses.badCuts}
|
badCuts={previousScoreMisses.badCuts}
|
||||||
bombCuts={previousScoreMisses.bombCuts}
|
bombCuts={previousScoreMisses.bombCuts}
|
||||||
wallsHit={previousScoreMisses.wallsHit}
|
wallsHit={previousScoreMisses.wallsHit}
|
||||||
|
fullCombo={previousScoreFc}
|
||||||
>
|
>
|
||||||
<div className="flex gap-1 items-center">
|
<div className="flex gap-1 items-center">
|
||||||
{previousScoreMisses.misses == 0 ? (
|
{previousScoreFc ? (
|
||||||
<p className="text-green-400">FC</p>
|
<p className="text-green-400">FC</p>
|
||||||
) : (
|
) : (
|
||||||
formatNumberWithCommas(previousScoreMisses.misses)
|
formatNumberWithCommas(previousScoreMisses.misses)
|
||||||
|
Reference in New Issue
Block a user