Skip to content

Commit 18fe48b

Browse files
author
Jon Petersson
committed
Fix welcome screen not shown on account creation
1 parent ef86758 commit 18fe48b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ios/MullvadVPN/Coordinators/LoginCoordinator.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class LoginCoordinator: Coordinator, Presenting, DeviceManagementViewContr
5656
})
5757
.store(in: &subscriptions)
5858

59-
interactor.didCreateAccount = self.didCreateAccount
59+
interactor.didCreateAccount = didCreateAccount
6060

6161
navigationController.pushViewController(loginController, animated: animated)
6262

ios/MullvadVPN/View controllers/Login/LoginInteractor.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ final class LoginInteractor {
2626
}
2727

2828
func createAccount() async throws -> String {
29-
try await tunnelManager.setNewAccount().number
29+
let accountNumber = try await tunnelManager.setNewAccount().number
30+
didCreateAccount?()
31+
32+
return accountNumber
3033
}
3134

3235
func getLastUsedAccount() -> String? {

0 commit comments

Comments
 (0)