From 73599b16b3f48315dd9aa400cb5d6163060de441 Mon Sep 17 00:00:00 2001 From: behnaz-deriv Date: Tue, 11 Jun 2024 14:35:36 +0800 Subject: [PATCH] chore: log2 --- .../src/pages/signup-affiliates/utils/_birth-picker.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/gatsby-theme-deriv/src/pages/signup-affiliates/utils/_birth-picker.tsx b/themes/gatsby-theme-deriv/src/pages/signup-affiliates/utils/_birth-picker.tsx index ecd3c9401f0..a46b5a235b1 100644 --- a/themes/gatsby-theme-deriv/src/pages/signup-affiliates/utils/_birth-picker.tsx +++ b/themes/gatsby-theme-deriv/src/pages/signup-affiliates/utils/_birth-picker.tsx @@ -111,7 +111,10 @@ const BirthPicker = ({ id, error, value, setFieldValue, label, label_color }: Bi } const max_date = subtractYears(18) - const handleDateChange = (date) => setFieldValue((prev) => ({ ...prev, date_birth: date })) + const handleDateChange = (date) => { + console.log('==>', date) + setFieldValue((prev) => ({ ...prev, date_birth: date })) + } return (