Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalopitz committed Mar 27, 2024
1 parent 1f62c15 commit 22cf2fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/common/helpers/flattenSoapObject.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export function flattenSoapObject(obj) {
const out = {};
for(const key of Object.keys(obj)) {
if(obj[key]._) {
for (const key of Object.keys(obj)) {
if (obj[key]._) {
out[key] = obj[key]._;
} else {
out[key] = obj[key];
}
}

return out;
}
}
12 changes: 8 additions & 4 deletions src/common/helpers/getServiceLogoUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ export default function getServiceLogoUrl(id) {
ServiceImageMap.presentationmap.service,
(i) => get(i, 'id') === encodedId
);

const attBrandMark = (match?.image || []).find(i => i.placement === 'AttributionBrandmark')?._;
const brandLogo = (match?.image || []).find(i => i.placement === 'BrandLogo-v2')?._;


const attBrandMark = (match?.image || []).find(
(i) => i.placement === 'AttributionBrandmark'
)?._;
const brandLogo = (match?.image || []).find(
(i) => i.placement === 'BrandLogo-v2'
)?._;

return attBrandMark || brandLogo;
} catch (e) {
console.log(e);
Expand Down

0 comments on commit 22cf2fb

Please sign in to comment.