Skip to content

Commit

Permalink
style: ktfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SidonieBouthors committed Jun 2, 2024
1 parent aff8423 commit ff6e9fb
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@ class ProfileMembersViewModel(
CurrentUser.associationUid!!,
{ members -> _uiState.value = _uiState.value.copy(currMembers = members, refresh = false) },
{
_uiState.value = _uiState.value.copy(refresh = false)
snackbarSystem.showSnackbar("Error loading members") })
_uiState.value = _uiState.value.copy(refresh = false)
snackbarSystem.showSnackbar("Error loading members")
})
}

fun refreshMembers() {
_uiState.value = _uiState.value.copy(refresh = true)
associationAPI.updateCache(
{ loadMembers() }, {
_uiState.value = _uiState.value.copy(refresh = false)
snackbarSystem.showSnackbar("Error refreshing members") })
{ loadMembers() },
{
_uiState.value = _uiState.value.copy(refresh = false)
snackbarSystem.showSnackbar("Error refreshing members")
})
}

fun onEditMember(member: AssociationMember) {
Expand Down

0 comments on commit ff6e9fb

Please sign in to comment.