diff --git a/views/profile.pug b/views/profile.pug index 95db723..c96dc3e 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -37,10 +37,11 @@ mixin generatePersona(persona, isPrimary) p Proof link: not accessible from browser block content - script. - kx = { - publicKey: !{JSON.stringify(data.publicKey)} - } + if (data && 'publicKey' in data) + script. + kx = { + publicKey: !{JSON.stringify(data.publicKey)} + } if (data && 'errors' in data && data.errors.length > 0) section