From 3fb87fa9b89e67463bf62894871d1c4dbdd1b9eb Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 28 Apr 2024 22:27:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Fix=20DeepScan=20warn,=20by=20re?= =?UTF-8?q?moving=20obsolete=20param?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/IsVisibleToUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/IsVisibleToUser.js b/src/utils/IsVisibleToUser.js index fba48fa6ff..9b80bcbadc 100644 --- a/src/utils/IsVisibleToUser.js +++ b/src/utils/IsVisibleToUser.js @@ -27,7 +27,7 @@ const determineIntersection = (source = [], target = []) => { /* Returns false if the displayData of a section/item should not be rendered for the current user/ guest */ export const isVisibleToUser = (displayData, currentUser) => { - const isGuest = isLoggedInAsGuest(currentUser); // Check if current user is a guest + const isGuest = isLoggedInAsGuest(); // Check if current user is a guest // Checks if user explicitly has access to a certain section const checkVisibility = () => {