Skip to content

Commit

Permalink
round power display in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jun 29, 2024
1 parent 8953554 commit 25e329f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/FactionsDataGrid/FactionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function getFactionDetailsEntries(
props: ManageFactionDialogProps,
): FactionDetailsEntry[] {
const name = factionNameRenderMap[props.faction.Name].display
const power = props.faction.Power
const power = Math.round(props.faction.Power)
const intel = props.faction.IntelInvested

// prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function getRows(factions: Faction[]): FactionRow[] {
return _.map(factions, (faction: Faction) => ({
id: faction.Id,
faction: faction.Name,
power: faction.Power,
power: Math.round(faction.Power),
intel: faction.IntelInvested,
}))
}
Expand Down

0 comments on commit 25e329f

Please sign in to comment.