Wizard: Fix registration validation for Satellite on edit

When editing a blueprint with Satellite registration the "Save changes" button was disabled due to registration validation failing with "No activation key selected". Activation key is not required for Satellite.
This commit is contained in:
regexowl 2025-08-05 13:26:08 +02:00 committed by Gianluca Zuccarelli
parent 68b2f74a97
commit 894d2a4d76

View file

@ -130,7 +130,11 @@ export function useRegistrationValidation(): StepValidation {
}
);
if (registrationType !== 'register-later' && !activationKey) {
if (
registrationType !== 'register-later' &&
registrationType !== 'register-satellite' &&
!activationKey
) {
return {
errors: { activationKey: 'No activation key selected' },
disabledNext: true,
@ -139,6 +143,7 @@ export function useRegistrationValidation(): StepValidation {
if (
registrationType !== 'register-later' &&
registrationType !== 'register-satellite' &&
activationKey &&
(isFetchingKeyInfo || isErrorKeyInfo)
) {