Fix for corp product cost

This commit is contained in:
pigalot 2022-01-19 18:44:48 +00:00
parent 34f18a6000
commit 5c7ac9ab8e

@ -81,7 +81,7 @@ export function ProductElem(props: IProductProps): React.ReactElement {
);
} else if (product.sCost) {
if (isString(product.sCost)) {
const sCost = (product.sCost as string).replace(/MP/g, product.pCost + "");
const sCost = (product.sCost as string).replace(/MP/g, product.pCost + product.rat / product.mku + "");
sellButtonText = (
<>
{sellButtonText} @ <Money money={eval(sCost)} />