Fix search results

This commit is contained in:
Bill 2021-09-08 17:13:37 -04:00
parent 4acaf0ddf7
commit bdc3211fce

View File

@ -42,13 +42,13 @@ export const CatalogSearchResultOfferView: FC<CatalogSearchResultOfferViewProps>
switch(furniData.className) switch(furniData.className)
{ {
case 'floor': case 'floor':
iconName = ['th', furniData.className, offer.customParams].join('_'); iconName = ['th', furniData.className, offer.customParams ].join('_');
break; break;
case 'wallpaper': case 'wallpaper':
iconName = ['th', 'wall', offer.customParams].join('_'); iconName = ['th', 'wall', offer.customParams ].join('_');
break; break;
case 'landscape': case 'landscape':
iconName = ['th', furniData.className, offer.customParams.replace('.', '_'), '001'].join('_'); iconName = ['th', furniData.className, ((offer.customParams && offer.customParams.replace('.', '_')) || null), '001'].join('_');
break; break;
} }