diff Simoleon/Helpers/SubscribeButton.swift @ 47:75c1a05176f6

Refactor code
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Mon, 26 Jul 2021 20:08:20 +0100
parents d25b02d439d4
children c7b6249ab745
line wrap: on
line diff
--- a/Simoleon/Helpers/SubscribeButton.swift	Mon Jul 26 18:25:03 2021 +0100
+++ b/Simoleon/Helpers/SubscribeButton.swift	Mon Jul 26 20:08:20 2021 +0100
@@ -42,7 +42,7 @@
     private func fetchMonthlySubscription() {
         Purchases.shared.offerings { (offerings, error) in
             if let product = offerings?.current?.monthly?.product {
-                self.price = formatCurrency(product.priceLocale, product.price)
+                price = formatCurrency(product.priceLocale, product.price)
                 showingPrice = true
             }