Skip to content

Commit 85ba941

Browse files
committed
Remove scheme from site URL in settings
1 parent bab9732 commit 85ba941

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewModel.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ final class SettingsViewModel: SettingsViewModelOutput, SettingsViewModelActions
7272
/// Main Site's URL
7373
///
7474
var siteUrl: String? {
75-
stores.sessionManager.defaultSite?.url as String?
75+
let urlString = stores.sessionManager.defaultSite?.url as String?
76+
return urlString?.removingPrefix("https://").removingPrefix("http://")
7677
}
7778

7879
/// Sites pulled from the results controlelr

0 commit comments

Comments
 (0)