Fix disabling comments

This commit is contained in:
Arkadiusz Fal 2021-12-05 18:10:33 +01:00
parent 7f9b53bd1f
commit 37b99c59e1
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ final class CommentsModel: ObservableObject {
var player: PlayerModel!
static var enabled: Bool {
!Defaults[.commentsInstanceID].isNil
!Defaults[.commentsInstanceID].isNil && !Defaults[.commentsInstanceID]!.isEmpty
}
var nextPageAvailable: Bool {

View File

@ -59,7 +59,7 @@ struct ServicesSettings: View {
private var commentsInstancePicker: some View {
Picker("Comments", selection: $commentsInstanceID) {
Text("Disabled").tag(String?.none)
Text("Disabled").tag(Optional(""))
ForEach(InstancesModel.all.filter { $0.app.supportsComments }) { instance in
Text(instance.description).tag(Optional(instance.id))