File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Fitfty/Projects/Setting/Sources/PersonalInfo/ViewModel Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ public final class PersonalInfoViewModel: ViewModelType {
7878 nickname: response. data? . nickname,
7979 birtyday: response. data? . birthday,
8080 gender: response. data? . gender)
81+
8182 currentState. send ( . updateUserPrivacy( userPrivacy: userPrivacy) )
8283 } catch {
8384 currentState. send ( . showErrorAlert( error) )
@@ -126,6 +127,7 @@ private extension PersonalInfoViewModel {
126127 try await repository. updateUserPrivacy ( nickname: nickname,
127128 birthday: birthday,
128129 gender: gender)
130+ DefaultUserManager . shared. updateGender ( Gender ( rawValue: gender) ?? . female)
129131 currentState. send ( . popView)
130132 } catch {
131133 currentState. send ( . showErrorAlert( error) )
You can’t perform that action at this time.
0 commit comments