From 5c7ac9ab8e8d2b48134763d204d2b4c68c5cc435 Mon Sep 17 00:00:00 2001 From: pigalot Date: Wed, 19 Jan 2022 18:44:48 +0000 Subject: [PATCH] Fix for corp product cost --- src/Corporation/ui/ProductElem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corporation/ui/ProductElem.tsx b/src/Corporation/ui/ProductElem.tsx index 2d83dc8c7..f8240b92a 100644 --- a/src/Corporation/ui/ProductElem.tsx +++ b/src/Corporation/ui/ProductElem.tsx @@ -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} @