Skip to content

Commit

Permalink
pull user on shop refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Oct 23, 2024
1 parent 3a5b7f3 commit cde6109
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HabitRPG/Generated/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public enum L10n {
public static var endChallenge: String { return L10n.tr("Mainstrings", "end_challenge") }
/// To end a Challenge, log in to the Habitica website then tap the “End Challenge” button on the right of the Challenge screen.
public static var endChallengeDescription: String { return L10n.tr("Mainstrings", "end_challenge_description") }
/// Ending on %@
/// Benefits end %@
public static func endingOn(_ p1: String) -> String {
return L10n.tr("Mainstrings", "ending_on", p1)
}
Expand Down
2 changes: 2 additions & 0 deletions HabitRPG/UI/Inventory/ShopViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ class ShopViewController: BaseCollectionViewController, ShopCollectionViewDataSo

@objc
private func refresh() {
userRepository.retrieveUser(forced: true).observeCompleted {
}
dataSource?.retrieveShopInventory({
self.refresher.endRefreshing()
})
Expand Down

0 comments on commit cde6109

Please sign in to comment.