From 5c35ea84b7b9e191e40d5d495557976e570b6d95 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 28 Feb 2022 22:14:53 +0100 Subject: [PATCH] fix: don't reset radio group values to undefined --- website/src/components/UserFeedback/index.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/website/src/components/UserFeedback/index.jsx b/website/src/components/UserFeedback/index.jsx index 3c57095f05..ae828e0948 100644 --- a/website/src/components/UserFeedback/index.jsx +++ b/website/src/components/UserFeedback/index.jsx @@ -99,7 +99,7 @@ export const FeedbackWrapper = ({ seedData, open }) => { const Step1 = () => { const hidden = isHidden(1); - const [newValue, setNewValue] = React.useState(undefined); + const [newValue, setNewValue] = React.useState(state.data.score); return (
{ What would you like to see improved in the Unleash documentation? - +
@@ -245,7 +249,7 @@ export const FeedbackWrapper = ({ seedData, open }) => { const Step3 = () => { const hidden = isHidden(3); - const [value, setValue] = React.useState(); + const [value, setValue] = React.useState(state.data.customerType); return (