forked from Mirrors/keyoxide-web
fix: make sure primaryUserIndex exists
This commit is contained in:
parent
786e9cdd3e
commit
04180468ba
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,8 @@ const processKeyData = (keyData) => {
|
|||
})
|
||||
})
|
||||
|
||||
keyData.primaryUserIndex ||= 0
|
||||
|
||||
return keyData
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue