Skip to content

Commit

Permalink
modify if conditionn before calling onCloseCallback
Browse files Browse the repository at this point in the history
Signed-off-by: Tsaqif <[email protected]>
  • Loading branch information
tsa321 committed Oct 19, 2023
1 parent 769f01e commit e7da926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopoverProvider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function PopoverContextProvider(props) {
}

activePopoverRef.current.close();
if (activePopoverRef && activePopoverRef.current && activePopoverRef.current.onCloseCallback) {
if (activePopoverRef.current.onCloseCallback) {
activePopoverRef.current.onCloseCallback();
}
activePopoverRef.current = null;
Expand Down

0 comments on commit e7da926

Please sign in to comment.