Skip to content

Commit

Permalink
fix: set overlay logo (openwallet-foundation#1412)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach authored Jan 23, 2025
1 parent db9477b commit cbf3f9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/oca/src/legacy/resolver/oca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,11 @@ export class DefaultOCABundleResolver implements OCABundleResolverType {
const overlayBundle = bundle ?? defaultBundle
const metaOverlay = overlayBundle?.metaOverlay
const brandingOverlay = overlayBundle?.brandingOverlay
if (brandingOverlay && 'logo' in brandingOverlay) {
(brandingOverlay as BrandingOverlay).logo = params.meta?.logo;

if (brandingOverlay && 'logo' in brandingOverlay && params.meta?.logo) {
brandingOverlay.logo = params.meta.logo
}

return { bundle: overlayBundle, presentationFields: fields, metaOverlay, brandingOverlay }
}
}

0 comments on commit cbf3f9e

Please sign in to comment.