Skip to content

Commit

Permalink
fix: newbie is not displayed in sum when it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed Oct 2, 2023
1 parent b290267 commit 0d97c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/gacha/analysis/GachaAnalysisSum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function GachaAnalysisSum () {
<GachaAnalysisSumCol title={character.categoryTitle} values={computeNamedGachaRecordsValues(character)} />
<GachaAnalysisSumCol title={weapon.categoryTitle} values={computeNamedGachaRecordsValues(weapon)} />
<GachaAnalysisSumCol title={permanent.categoryTitle} values={computeNamedGachaRecordsValues(permanent)} />
<GachaAnalysisSumCol title={newbie.categoryTitle} values={computeNamedGachaRecordsValues(newbie)} />
{newbie.total > 0 && <GachaAnalysisSumCol title={newbie.categoryTitle} values={computeNamedGachaRecordsValues(newbie)} />}
<GachaAnalysisSumCol title="合计" values={computeNamedGachaRecordsValues(aggregatedValues)} />
</Stack>
</Box>
Expand Down

0 comments on commit 0d97c13

Please sign in to comment.