Skip to content

Commit

Permalink
Add further comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Jan 22, 2025
1 parent 3f716ce commit ce92570
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export const ShowHideContainers = () => {
);

for (const button of showHideButtons) {
/**
* We need if a user is signed in before we can make any further decisions about show/hide buttons.
* If the state is still pending, return early to prevent any flickering of the buttons.
*/
if (isSignedIn === 'Pending') return;

const sectionId = button.getAttribute('data-show-hide-button');
Expand Down

0 comments on commit ce92570

Please sign in to comment.