mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
fix: avoid adding script if data is missing
This commit is contained in:
parent
bad5af6770
commit
75709a1168
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue