From cde6109b3891aa776eafee21d22d807c3ba32b1b Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Wed, 23 Oct 2024 17:17:30 +0200 Subject: [PATCH] pull user on shop refresh --- HabitRPG/Generated/Strings.swift | 2 +- HabitRPG/UI/Inventory/ShopViewController.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HabitRPG/Generated/Strings.swift b/HabitRPG/Generated/Strings.swift index 26c902d04..6ee642752 100644 --- a/HabitRPG/Generated/Strings.swift +++ b/HabitRPG/Generated/Strings.swift @@ -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) } diff --git a/HabitRPG/UI/Inventory/ShopViewController.swift b/HabitRPG/UI/Inventory/ShopViewController.swift index d974bb9bd..0ebfd05d1 100644 --- a/HabitRPG/UI/Inventory/ShopViewController.swift +++ b/HabitRPG/UI/Inventory/ShopViewController.swift @@ -147,6 +147,8 @@ class ShopViewController: BaseCollectionViewController, ShopCollectionViewDataSo @objc private func refresh() { + userRepository.retrieveUser(forced: true).observeCompleted { + } dataSource?.retrieveShopInventory({ self.refresher.endRefreshing() })