From c0f9165a3d89bf4ad737d44a90727e7812411c5c Mon Sep 17 00:00:00 2001 From: Urban Date: Tue, 14 May 2024 19:53:39 +0200 Subject: [PATCH] fix(dapp): og issuer display on education credential (#654) --- packages/dapp/src/app/api/og/route.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/dapp/src/app/api/og/route.tsx b/packages/dapp/src/app/api/og/route.tsx index 811917c3b..08da21a34 100644 --- a/packages/dapp/src/app/api/og/route.tsx +++ b/packages/dapp/src/app/api/og/route.tsx @@ -97,7 +97,9 @@ export async function GET(req: NextRequest) { fontWeight: 'normal', }} > - {formatDid(credentialIssuer)} + {credentialType.includes('Education Credential') + ? credentialIssuer + : formatDid(credentialIssuer)}
ACHIEVED
- {formatDid(credentialIssuer)} + {credentialType.includes('Education Credential') + ? credentialIssuer + : formatDid(credentialIssuer)}
ISSUED TO