Skip to content

Commit

Permalink
🔥 Fix DeepScan warn, by removing obsolete param
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Apr 28, 2024
1 parent b5415ca commit 3fb87fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/IsVisibleToUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 3fb87fa

Please sign in to comment.