fix: avoid adding script if data is missing

This commit is contained in:
Yarmo Mackenbach 2023-09-14 11:55:45 +02:00
parent bad5af6770
commit 75709a1168
No known key found for this signature in database
GPG key ID: 3C57D093219103A3

View file

@ -37,6 +37,7 @@ mixin generatePersona(persona, isPrimary)
p Proof link: not accessible from browser
block content
if (data && 'publicKey' in data)
script.
kx = {
publicKey: !{JSON.stringify(data.publicKey)}