From 04180468baacd0426bff51e1971b02edb6215c8a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 19 Jun 2023 10:37:31 +0200 Subject: [PATCH] fix: make sure primaryUserIndex exists --- src/server/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/index.js b/src/server/index.js index b92240d..06ad467 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -250,6 +250,8 @@ const processKeyData = (keyData) => { }) }) + keyData.primaryUserIndex ||= 0 + return keyData }