diff --git a/lib/logic/cubit/server_installation/server_installation_repository.dart b/lib/logic/cubit/server_installation/server_installation_repository.dart index 8ebe7c1a..24e3adc6 100644 --- a/lib/logic/cubit/server_installation/server_installation_repository.dart +++ b/lib/logic/cubit/server_installation/server_installation_repository.dart @@ -77,7 +77,7 @@ class ServerInstallationRepository { return ServerInstallationFinished( installationDialoguePopUp: null, providerApiToken: providerApiToken!, - serverTypeIdentificator: serverTypeIdentificator ?? '', + serverTypeIdentificator: serverTypeIdentificator!, dnsApiToken: dnsApiToken!, serverDomain: serverDomain!, backblazeCredential: backblazeCredential!, @@ -97,6 +97,7 @@ class ServerInstallationRepository { providerApiToken: providerApiToken, dnsApiToken: dnsApiToken, serverDomain: serverDomain, + serverTypeIdentificator: serverTypeIdentificator, backblazeCredential: backblazeCredential, serverDetails: serverDetails, rootUser: box.get(BNames.rootUser), @@ -114,6 +115,7 @@ class ServerInstallationRepository { providerApiToken: providerApiToken, dnsApiToken: dnsApiToken, serverDomain: serverDomain, + serverTypeIdentificator: serverTypeIdentificator, backblazeCredential: backblazeCredential, serverDetails: serverDetails, rootUser: box.get(BNames.rootUser), diff --git a/lib/logic/cubit/server_installation/server_installation_state.dart b/lib/logic/cubit/server_installation/server_installation_state.dart index a163b145..9f701a0a 100644 --- a/lib/logic/cubit/server_installation/server_installation_state.dart +++ b/lib/logic/cubit/server_installation/server_installation_state.dart @@ -200,7 +200,7 @@ class ServerInstallationNotFinished extends ServerInstallationState { ServerInstallationFinished finish() => ServerInstallationFinished( providerApiToken: providerApiToken!, - serverTypeIdentificator: serverTypeIdentificator ?? '', + serverTypeIdentificator: serverTypeIdentificator!, dnsApiToken: dnsApiToken!, backblazeCredential: backblazeCredential!, serverDomain: serverDomain!, @@ -346,7 +346,7 @@ class ServerInstallationRecovery extends ServerInstallationState { ServerInstallationFinished finish() => ServerInstallationFinished( providerApiToken: providerApiToken!, - serverTypeIdentificator: serverTypeIdentificator ?? '', + serverTypeIdentificator: serverTypeIdentificator!, dnsApiToken: dnsApiToken!, backblazeCredential: backblazeCredential!, serverDomain: serverDomain!,