Skip to content
Snippets Groups Projects
Commit 86f78192 authored by Fodor Patrik's avatar Fodor Patrik :ghost:
Browse files

Refactoring

parent c49b0b42
Branches
Tags
No related merge requests found
...@@ -186,6 +186,21 @@ fun Profile(isEditable: Boolean = false) { ...@@ -186,6 +186,21 @@ fun Profile(isEditable: Boolean = false) {
editable.value = false editable.value = false
coroutineScope.launch { coroutineScope.launch {
updateUserData(user, profileState)
}
}) {
Text(text = "Mentés")
}
}
}
}
}
private suspend fun updateUserData(
user: MutableState<User>,
profileState: ProfileState
) {
registerOrOverwriteUser( registerOrOverwriteUser(
User( User(
id = user.value.id, id = user.value.id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment