From afd0e99ad1ad7d46209d51623dc378d58f5bb3b0 Mon Sep 17 00:00:00 2001 From: Mel Ludowise Date: Tue, 24 Sep 2024 19:45:42 -0700 Subject: [PATCH] rebase fixit --- .../StripeConnectExample/Storage/AppSettings.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Example/StripeConnectExample/StripeConnectExample/Storage/AppSettings.swift b/Example/StripeConnectExample/StripeConnectExample/Storage/AppSettings.swift index c204a7e64d3..8e2511c306e 100644 --- a/Example/StripeConnectExample/StripeConnectExample/Storage/AppSettings.swift +++ b/Example/StripeConnectExample/StripeConnectExample/Storage/AppSettings.swift @@ -90,3 +90,9 @@ class AppSettings { defaults.setValue(merchant?.id, forKey: Constants.selectedMerchantKey) } } + +private extension UserDefaults { + func string(forKey defaultName: String, defaultValue: String = "") -> String { + self.string(forKey: defaultName) ?? defaultValue + } +}