Skip to content

Commit

Permalink
Fix crash during markers tutorial (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbro committed Aug 18, 2023
1 parent b86cdb4 commit f499cc5
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ class MarkerTutorialViewController: BaseTutorialViewController {
return
}

headTitle.text = page.title
imageView.image = page.image
DispatchQueue.main.async {
self.headTitle.text = page.title
self.imageView.image = page.image
}
changeActionButton(with: page.buttonTitle, action: page.buttonAction)

if page.buttonTitle == nil {
Expand Down Expand Up @@ -377,7 +379,9 @@ class MarkerTutorialViewController: BaseTutorialViewController {

let entityKeyToInclude = selectedPOI?.key != nil ? [selectedPOI!.key] : []
let event = ExplorationModeToggled(.nearbyMarkers, requiredMarkerKeys: entityKeyToInclude, logContext: "marker_tutorial") { [weak self] _ in
self?.showNextPage()
DispatchQueue.main.async {
self?.showNextPage()
}
}

AppContext.process(event)
Expand Down

0 comments on commit f499cc5

Please sign in to comment.