Wizard: Fix Registration bug
The second condition in `useRegistrationValidation` needs to be triggered only for `register-now` options, otherwise the Next button stays disabled on fetching and error even for `register-later`.
This commit is contained in:
parent
39d2f91f03
commit
003aa9df48
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ export function useRegistrationValidation(): StepValidation {
|
|||
};
|
||||
}
|
||||
|
||||
if (activationKey && (isFetching || isError)) {
|
||||
if (
|
||||
registrationType !== 'register-later' &&
|
||||
activationKey &&
|
||||
(isFetching || isError)
|
||||
) {
|
||||
return {
|
||||
errors: { activationKey: 'Invalid activation key' },
|
||||
disabledNext: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue