Skip to content

Commit

Permalink
BAL-183-GP-BPM-CONFIGURATION
Browse files Browse the repository at this point in the history
  • Loading branch information
gperissetcelteeka committed Oct 24, 2023
1 parent ff599b5 commit 0dd5406
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Balance/Balance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ struct Balance: App {
if !userModel.existLocalUser(uid: demoID) {
userModel.createDemoUser()
}
if (UserDefaults.standard.value(forKey: bpmKEY) == nil) {

let bmpStep = UserDefaults.standard.value(forKey: bpmKEY)
if bmpStep == nil {
UserDefaults.standard.setValue(defaultBPM, forKey: bpmKEY)
}
})
Expand Down
1 change: 0 additions & 1 deletion Balance/Profile/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ struct ProfileView: View {
value = 100.0
}
UserDefaults.standard.set(value, forKey: bpmKEY)

}

Check warning on line 318 in Balance/Profile/ProfileView.swift

View check run for this annotation

Codecov / codecov/patch

Balance/Profile/ProfileView.swift#L301-L318

Added lines #L301 - L318 were not covered by tests

func readBPM() {
Expand Down
2 changes: 1 addition & 1 deletion Balance/Utils/BalanceExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ extension DateFormatter {
}()
}

extension UIScreen{
extension UIScreen {
static let screenWidth = UIScreen.main.bounds.size.width
static let screenHeight = UIScreen.main.bounds.size.height
static let screenSize = UIScreen.main.bounds.size
Expand Down

0 comments on commit 0dd5406

Please sign in to comment.