Skip to content

Commit

Permalink
Fix some service logo resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalopitz committed Mar 27, 2024
1 parent 22cf2fb commit 7ca7f5c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/common/helpers/getServiceLogoUrl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import get from 'lodash/get';

import { Helpers } from 'sonos';

const SERVICE_LOGOS_URI =
Expand All @@ -23,9 +21,8 @@ export default function getServiceLogoUrl(id) {
}

const encodedId = String(7 + Number(id) * 256);
const match = find(
ServiceImageMap.presentationmap.service,
(i) => get(i, 'id') === encodedId
const match = ServiceImageMap.presentationmap.service.find(
(i) => i.id == encodedId
);

const attBrandMark = (match?.image || []).find(
Expand Down

0 comments on commit 7ca7f5c

Please sign in to comment.