Skip to content

Commit fd05480

Browse files
author
Isaac
committed
Fix build
1 parent 83f6068 commit fd05480

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

submodules/TelegramUI/Components/PeerInfo/ProfileLevelInfoScreen/Sources/ProfileLevelInfoScreen.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,11 +615,17 @@ public class ProfileLevelInfoScreen: ViewControllerComponentContainer {
615615
) {
616616
self.context = context
617617

618+
let theme: ViewControllerComponentContainer.Theme
619+
if let customTheme {
620+
theme = .custom(customTheme)
621+
} else {
622+
theme = .default
623+
}
618624
super.init(context: context, component: ProfileLevelInfoScreenComponent(
619625
context: context,
620626
peer: peer,
621627
starRating: starRating,
622-
), navigationBarAppearance: .none, theme: customTheme.flatMap { .custom($0) } ?? .default)
628+
), navigationBarAppearance: .none, theme: theme)
623629

624630
self.statusBar.statusBarStyle = .Ignore
625631
self.navigationPresentation = .flatModal

0 commit comments

Comments
 (0)