Closed this issue 2 years ago · 1 comments
The state consentObject has a wrong manipulation.
handleConsentObjectChange()
Changed the handleConsentObjectChange() to fix the state object changing.
setConsentObject(prevConsentObject => ({ ...prevConsentObject, newConsentObject }))
setConsentObject(newConsentObject)