File tree Expand file tree Collapse file tree
src/search/components/product-modal Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments