Skip to content

Commit e180a11

Browse files
committed
Use NoWPUI in shouldPresentUsernamePasswordController
1 parent 40a67a4 commit e180a11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WooCommerce/Classes/Authentication/AuthenticationManager.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,7 @@ extension AuthenticationManager: WordPressAuthenticatorDelegate {
282282

283283
/// WordPress must be present.
284284
guard let site = siteInfo, site.isWP else {
285-
let viewModel = NotWPErrorViewModel()
286-
let notWPErrorUI = ULErrorViewController(viewModel: viewModel)
287-
288-
let authenticationResult: WordPressAuthenticatorResult = .injectViewController(value: notWPErrorUI)
285+
let authenticationResult: WordPressAuthenticatorResult = .injectViewController(value: noWPUI)
289286

290287
onCompletion(authenticationResult)
291288

0 commit comments

Comments
 (0)