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,10 +37,11 @@ mixin generatePersona(persona, isPrimary)
p Proof link: not accessible from browser p Proof link: not accessible from browser
block content block content
script. if (data && 'publicKey' in data)
kx = { script.
publicKey: !{JSON.stringify(data.publicKey)} kx = {
} publicKey: !{JSON.stringify(data.publicKey)}
}
if (data && 'errors' in data && data.errors.length > 0) if (data && 'errors' in data && data.errors.length > 0)
section section