From a1c348c31d205139e6d6c9098f0af37e037a92d1 Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 10 Jan 2022 12:50:13 -0500 Subject: [PATCH] fix recsys bug --- extras/recsys/recsys.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/recsys/recsys.js b/extras/recsys/recsys.js index 26ef26e85..9a8811332 100644 --- a/extras/recsys/recsys.js +++ b/extras/recsys/recsys.js @@ -94,7 +94,8 @@ const recsys = { createRecsysEntry: function (claimId, parentUuid) { if (window.store && claimId) { const state = window.store.getState(); - const { id: userId } = selectUser(state); + const user = selectUser(state); + const userId = user ? user.id : null; if (parentUuid) { // Make a stub entry that will be filled out on page load recsys.entries[claimId] = { -- 2.45.2