Skip to content

Commit

Permalink
Fixes #1333
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Jun 11, 2024
1 parent f9b6a23 commit 5a20065
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HabitRPG/UI/SetupViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SetupViewController: UIViewController, UIScrollViewDelegate {

var createdTags = [SetupTaskCategory: TagProtocol]()
var tagsToCreate = [SetupTaskCategory: TagProtocol]()
private var isCompletingSetup = false

private let configRepository = ConfigRepository.shared

Expand Down Expand Up @@ -186,7 +187,8 @@ class SetupViewController: UIViewController, UIScrollViewDelegate {
}

func completeSetup() {
if !tagsToCreate.isEmpty || !createdTags.isEmpty {
isCompletingSetup = true
if !tagsToCreate.isEmpty || !createdTags.isEmpty || isCompletingSetup {
return
}
UserDefaults.standard.set(false, forKey: "isInSetup")
Expand Down

0 comments on commit 5a20065

Please sign in to comment.