From 647f5187874bab86cee1332ef3846510183e0b7d Mon Sep 17 00:00:00 2001 From: saeedbashir Date: Tue, 8 Aug 2023 09:31:51 +0500 Subject: [PATCH] chore: show restore payments to only payment enabled users --- Source/ProfileOptionsViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ProfileOptionsViewController.swift b/Source/ProfileOptionsViewController.swift index 23a6c3ed2..2a6c5dc03 100644 --- a/Source/ProfileOptionsViewController.swift +++ b/Source/ProfileOptionsViewController.swift @@ -143,7 +143,7 @@ class ProfileOptionsViewController: UIViewController { options.append(.personalInformation) } - if environment.serverConfig.iapConfig?.enabled ?? false { + if environment.serverConfig.iapConfig?.enabledforUser ?? false { options.append(.restorePurchase) }