fixing some problems and adding more fixes to overall flow

This commit is contained in:
talksik
2021-12-20 20:07:24 -08:00
parent 08e31b4535
commit f663e3a0da
2 changed files with 12 additions and 6 deletions
@@ -104,16 +104,17 @@ struct AddBasicInfoView: View {
// button to save information
Button {
print("attempting to save information")
var updatedUser = self.authSessionStore.user
updatedUser?.avatar = Avatars.avatarSystemNames[self.selectedAvatarIndex]
updatedUser?.nickname = self.nickname
if updatedUser != nil {
self.addInfoViewModel.updateUser(currUser: updatedUser!)
}
print("attempting to save information \(updatedUser)")
self.navigationStack.push(InnerCircleView())
if updatedUser != nil {
self.addInfoViewModel.updateUser(currUser: updatedUser!) {
self.navigationStack.push(InnerCircleView())
}
}
} label: {
Text("Save")
.fontWeight(.heavy)