From e5e0bc8b3829e222d3d9de3bda368c8e24018f5e Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sat, 28 Mar 2020 17:40:19 +0200 Subject: [PATCH] onClick added to deps in ConsentCheckbox --- src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js b/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js index 4882e06d3..fb626ff0b 100644 --- a/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js +++ b/src/routes/Intro/ConsentCheckbox/ConsentCheckbox.js @@ -17,7 +17,7 @@ const ConsentCheckbox = React.forwardRef(({ className, checked, label, link, hre nativeEvent: event.nativeEvent }); } - }, [onToggle]); + }, [onToggle, props.onClick]); const linkOnClick = React.useCallback((event) => { event.nativeEvent.togglePrevented = true; }, []);