Merge pull request #2705 from pigalot/bug-corp-product-cost

BUG: Fix for corp product cost
This commit is contained in:
hydroflame 2022-01-26 00:46:39 -05:00 committed by GitHub
commit acee3c2994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -81,7 +81,7 @@ export function ProductElem(props: IProductProps): React.ReactElement {
); );
} else if (product.sCost) { } else if (product.sCost) {
if (isString(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 = (
<> <>
{sellButtonText} @ <Money money={eval(sCost)} /> {sellButtonText} @ <Money money={eval(sCost)} />