Skip to content

Commit 75661a8

Browse files
committed
Merge branch 'trunk' into fix/7512-crash-loginFields
# Conflicts: # Podfile # Podfile.lock
2 parents 8d5eeb1 + e5d0953 commit 75661a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WooCommerce/Classes/Authentication/ULAccountMatcher.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ final class ULAccountMatcher {
4343
}
4444

4545
return sites
46-
.map { $0.url }
47-
.contains(originalURL)
46+
.map { $0.url.trimHTTPScheme() }
47+
.contains(originalURL.trimHTTPScheme())
4848
}
4949

5050
/// Returns a locally stored site that matches the given site URL.
@@ -59,7 +59,7 @@ final class ULAccountMatcher {
5959
return nil
6060
}
6161

62-
return sites.first { $0.url == originalURL }
62+
return sites.first { $0.url.contains(originalURL.trimHTTPScheme()) }
6363
}
6464

6565
/// Refreshes locally stored sites that were synced previously.

0 commit comments

Comments
 (0)