Browse Source

donation: remove restore purchases link when no subscription is found

osy 1 year ago
parent
commit
14bc6efcd6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Platform/iOS/UTMDonateView.swift

+ 1 - 1
Platform/iOS/UTMDonateView.swift

@@ -91,7 +91,7 @@ private struct StoreView: View {
                 }
                 if store.consumables.isEmpty && store.subscriptions.isEmpty {
                     Link("GitHub Sponsors", destination: URL(string: "https://github.com/sponsors/utmapp")!)
-                } else {
+                } else if !store.subscriptions.isEmpty {
                     Button("Restore Purchases") {
                         Task {
                             try? await AppStore.sync()