From c638b51e50c1629762d5753e72d20f3c0a66de59 Mon Sep 17 00:00:00 2001 From: Karl Fritsche Date: Mon, 17 Jan 2022 15:18:19 +0100 Subject: [PATCH] Fix formatting of respect needed on gang UI --- src/Gang/ui/RecruitButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gang/ui/RecruitButton.tsx b/src/Gang/ui/RecruitButton.tsx index c1a89d3f2..9897557d5 100644 --- a/src/Gang/ui/RecruitButton.tsx +++ b/src/Gang/ui/RecruitButton.tsx @@ -4,7 +4,7 @@ import React, { useState } from "react"; import { RecruitModal } from "./RecruitModal"; import { GangConstants } from "../data/Constants"; -import { formatNumber } from "../../utils/StringHelperFunctions"; +import { numeralWrapper } from "../../ui/numeralFormat"; import { useGang } from "./Context"; import Typography from "@mui/material/Typography"; import Button from "@mui/material/Button"; @@ -28,7 +28,7 @@ export function RecruitButton(props: IProps): React.ReactElement { - {formatNumber(respect, 2)} respect needed to recruit next member + {numeralWrapper.formatRespect(respect)} respect needed to recruit next member ); }