Skip to content

Commit

Permalink
fix: og image loading (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
cre8 authored Oct 12, 2024
1 parent 7c7e8e1 commit d053acc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion viewer/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export class AppComponent implements OnInit {
if (information.image) {
this.metaService.updateTag({
property: 'og:image',
content: information.image,
content: information.image.startsWith('logos')
? `https://openwallet-foundation.github.io/digital-wallet-and-agent-overviews-sig/assets/${information.image}`
: information.image,
});
} else {
this.metaService.removeTag('property="og:image"');
Expand Down
5 changes: 4 additions & 1 deletion viewer/src/app/seo-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export class SeoResolver implements Resolve<SeoInformation> {
const caseStudy = this.caseStudiesService.find(id!);
return of(
caseStudy
? { title: `Case Study: ${caseStudy.headline}` }
? {
title: `Case Study: ${caseStudy.headline}`,
image: caseStudy.imageUrl,
}
: { title: 'Case Study Not Found' }
);
} else if (path?.startsWith('dependencies')) {
Expand Down
1 change: 0 additions & 1 deletion viewer/src/app/wallets/wallets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export class WalletsService {
}

find(id: string) {
console.log('id', id);
return this.loadWallets().find((wallet) => wallet.id === id);
}

Expand Down

0 comments on commit d053acc

Please sign in to comment.