damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 4033ad66baaf72db37196c195316666a2730c743
parent 2c0296cce319d57facb1d5e9642594f32bf4a273
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 17 Jul 2023 11:24:50 -0700

test: fix crash in ci

Diffstat:
Mdamus/Models/UserSettingsStore.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Models/UserSettingsStore.swift b/damus/Models/UserSettingsStore.swift @@ -31,7 +31,7 @@ func setting_get_property_value<T>(key: String, scoped_key: String, default_valu func setting_set_property_value<T: Equatable>(scoped_key: String, old_value: T, new_value: T) -> T? { guard old_value != new_value else { return nil } UserDefaults.standard.set(new_value, forKey: scoped_key) - UserSettingsStore.shared!.objectWillChange.send() + UserSettingsStore.shared?.objectWillChange.send() return new_value }