Skip to content

Commit dded4bf

Browse files
committed
remove console logs and add a comment.
1 parent 16438fa commit dded4bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/CookiePreferences/CookiePreferencesCheck.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import PropTypes from 'prop-types'
44
import { useState } from 'react'
55

66
const CookiePreferencesCheck = ({ cookieConsent, disableCookies, enableCookies }) => {
7-
console.log('CookiePreferencesCheck', { cookieConsent, disableCookies, enableCookies })
7+
// NOTE: the enable/disable cookies functions change the actual value.
8+
// the variable below is so the radio buttons update after being clicked.
89
const [allowed, setAllowed] = useState(cookieConsent)
910

1011
const handleEnablingCookies = () => {

src/components/CookiePreferences/CookiePreferencesModal.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const CookiePreferencesModal = ({ cookieConsent, disableCookies, enableCookies }
99
const [show, setShow] = useState(false)
1010
const handleClose = () => setShow(false)
1111
const handleShow = () => setShow(true)
12-
console.log('CookiePreferencesModal', { cookieConsent })
1312

1413
const handleEnablingCookies = () => {
1514
enableCookies()

0 commit comments

Comments
 (0)