Unwrap some optionals

This commit is contained in:
Aiden Vigue 2021-06-12 08:27:59 -07:00
parent 70f7ed0d98
commit f33edf11f0
No known key found for this signature in database
GPG Key ID: B9A09843AB079D5B
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ struct ConnectToServerView: View {
let server = response
serverName = server.serverName!
server_id = server.id!
if server.startupWizardCompleted! {
if server.startupWizardCompleted ?? true {
isConnected = true
UserAPI.getPublicUsers()

View File

@ -49,13 +49,13 @@ struct LibraryView: View {
init(withGenre: NameGuidPair) {
self.usingParentID = ""
self.title = withGenre.name ?? ""
self.genre = withGenre.id ?? ""
self.genre = withGenre.id!
}
init(withStudio: NameGuidPair) {
self.usingParentID = ""
self.title = withStudio.name ?? ""
self.studio = withStudio.id ?? ""
self.studio = withStudio.id!
}
func onAppear() {