From aa096e0958a0f74f2ed94a950e4822113395fefc Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Tue, 26 Sep 2023 21:21:56 +0200 Subject: [PATCH] chore: tests --- src/core_modules/capture-ui/Icons/ChevronIcon.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {