From c2a59d04c7a00163c3c3966b33c66b9b26566bf3 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 25 Mar 2022 22:20:08 +0100 Subject: [PATCH] Fix reference to non-existent object key --- src/signatures.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signatures.js b/src/signatures.js index 14527e2..0359d21 100644 --- a/src/signatures.js +++ b/src/signatures.js @@ -128,11 +128,11 @@ const process = async (signature) => { } result.users[0].userData = { - id: userData.userID ? userData.userID.userid : null, + id: userData.userID ? userData.userID.userID : null, name: userData.userID ? userData.userID.name : null, email: userData.userID ? userData.userID.email : null, comment: userData.userID ? userData.userID.comment : null, - isPrimary: primaryUserData.user.userID.userid === userData.userID.userid + isPrimary: primaryUserData.user.userID.userID === userData.userID.userID } result.primaryUserIndex = result.users[0].userData.isPrimary ? 0 : null