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:
parent
fc9735371f
commit
02fbdf5e88
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue