CreateImageWizard: remove act warning on Review step

When we load the organization id but do not use or display it we can
have an act warning because we unmount the component without handling
the response.
This commit is contained in:
Jacob Kozol 2022-02-11 13:29:39 +01:00 committed by Sanne Raymaekers
parent fc9735371f
commit 02fbdf5e88

View file

@ -16,7 +16,8 @@ const ReviewStep = () => {
const { change, getState } = useFormApi();
useEffect(() => {
if (getState()?.values?.['register-system'] !== 'register-later') {
const registerSystem = getState()?.values?.['register-system'];
if (registerSystem === 'register-now' || registerSystem === 'register-now-insights') {
(async () => {
const userData = await insights?.chrome?.auth?.getUser();
const id = userData?.identity?.internal?.org_id;