From 3a7efb2227b7d4d5814dc28e0e0cef1a269a93a1 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 12 Dec 2022 03:21:35 +0100 Subject: [PATCH] Improved how the "user" and "account" properties are assigned and cleared in the ContentView view of the BeReal app target. --- BeReal/UI/Views/ContentView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BeReal/UI/Views/ContentView.swift b/BeReal/UI/Views/ContentView.swift index d8bbabd..aa429f0 100644 --- a/BeReal/UI/Views/ContentView.swift +++ b/BeReal/UI/Views/ContentView.swift @@ -46,11 +46,12 @@ struct ContentView: View { switch sheet { case .login: LoginView { - account = $0 user = $1 + account = $0 } case .profile: - ProfileView { + ProfileView(user: user) { + user = nil account = nil } }