Skip to content

Commit c6d6a88

Browse files
committed
Merge branch 'master' into prod
2 parents e340782 + 2859c4f commit c6d6a88

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/search/components/product-modal/ProductDetails.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export const ProductDetails: React.FC<IProductDetails> = ({ product }) => {
194194
const registeredProperty = getPropertiesFromManufacturer(manufacturer, PolishPropertyName.REGISTERED);
195195
const notGlobalProperty = getPropertiesFromManufacturer(manufacturer, PolishPropertyName.NOT_GLOBAL);
196196
const capitalProperty = getPropertiesFromManufacturer(manufacturer, PolishPropertyName.CAPITAL);
197+
const isFriend = !!manufacturer.is_friend;
197198

198199
return (
199200
<DetailsContainer>
@@ -206,7 +207,7 @@ export const ProductDetails: React.FC<IProductDetails> = ({ product }) => {
206207

207208
{/* Ocena + progress bar */}
208209
<ScoreRow>
209-
{product.manufacturer.plScore === 100 && (
210+
{isFriend && (
210211
<div style={{
211212
background: '#ffe5e5',
212213
color: '#c10028',

0 commit comments

Comments
 (0)