diff --git a/src/core_modules/capture-ui/Icons/ChevronIcon.component.js b/src/core_modules/capture-ui/Icons/ChevronIcon.component.js index 610244a741..491b1cb452 100644 --- a/src/core_modules/capture-ui/Icons/ChevronIcon.component.js +++ b/src/core_modules/capture-ui/Icons/ChevronIcon.component.js @@ -56,7 +56,7 @@ const ChevronIconPlain = ({ open, onOpen, onClose, dataTest, disabled, classes } if (disabled) { return null; } - return open ? onClose : onOpen; + return open ? onClose() : onOpen(); }; useEffect(() => {