editing all fields works and app is actually functional with profile edits
This commit is contained in:
@@ -120,9 +120,9 @@ final class AddChemicalViewModel {
|
||||
func loadProfile() async {
|
||||
guard !isEditing else { return }
|
||||
if let profile = try? await profileClient.get() {
|
||||
piFirstName = profile.piFirstName
|
||||
bldgCode = profile.bldgCode
|
||||
lab = profile.lab
|
||||
piFirstName = profile.piFirstName ?? ""
|
||||
bldgCode = profile.bldgCode ?? ""
|
||||
lab = profile.lab ?? ""
|
||||
contact = profile.contact ?? ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user