Skip to content

Commit 01509c3

Browse files
committed
Added comment to clarify what the line of code is doing
1 parent 99b4e94 commit 01509c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/lib/usePopover.es6.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function usePopover (isProcessing) {
77
(popoverName) => {
88
if (isProcessing) return
99

10+
// If the clicked popover name is the same, set it to null to close it. Otherwise set it to the name of the clicked popover to open it
1011
setActivePopover((current) => (current === popoverName ? null : popoverName))
1112
},
1213
[isProcessing],

0 commit comments

Comments
 (0)