Skip to content

Commit

Permalink
fix: og issued/holder fields
Browse files Browse the repository at this point in the history
Signed-off-by: Urban Vidovič <urbanfoundit@gmail.com>
  • Loading branch information
pseudobun committed Apr 11, 2024
1 parent 25ac43e commit aad7c66
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions packages/dapp/src/app/api/og/route.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { formatDid } from '@/utils/format';
import { ImageResponse } from '@vercel/og';
import type { NextRequest } from 'next/server';

Expand Down Expand Up @@ -96,7 +97,7 @@ export async function GET(req: NextRequest) {
fontWeight: 'normal',
}}
>
{credentialIssuer}
{formatDid(credentialIssuer)}
</div>
<div tw="text-md text-orange-100 mt-4">ACHIEVED</div>
<div
Expand Down Expand Up @@ -218,11 +219,7 @@ export async function GET(req: NextRequest) {
fontWeight: 'normal',
}}
>
{credentialIssuer.substring(0, 10)}...
{credentialIssuer.substring(
holder.length,
holder.length - 10
)}
{formatDid(credentialIssuer)}
</div>
<div tw="text-md text-orange-100 mt-4">ISSUED TO</div>
<div
Expand All @@ -232,11 +229,7 @@ export async function GET(req: NextRequest) {
fontWeight: 'normal',
}}
>
{credentialSubject.substring(0, 10)}...
{credentialSubject.substring(
holder.length,
holder.length - 10
)}
{formatDid(credentialSubject)}
</div>
<div tw="text-md text-orange-100 mt-4">ISSUED ON</div>
<div
Expand Down

0 comments on commit aad7c66

Please sign in to comment.