Skip to content

Commit

Permalink
fix: remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
SidonieBouthors committed Jun 1, 2024
1 parent 9392307 commit 8442818
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.se.assocify.ui.screens.event

import android.util.Log
import androidx.compose.material3.SnackbarDuration
import androidx.compose.material3.SnackbarHostState
import androidx.lifecycle.ViewModel
Expand Down Expand Up @@ -49,10 +48,7 @@ class EventScreenViewModel(
_uiState.value = _uiState.value.copy(events = events)
_uiState.value = _uiState.value.copy(loading = false, error = null)
},
{
Log.e("EventScreenViewModel", "Error loading events", it)
_uiState.value = _uiState.value.copy(loading = false, error = "Error loading events")
})
{ _uiState.value = _uiState.value.copy(loading = false, error = "Error loading events") })
}

/** Setup the filtered events depending on the current filters */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.se.assocify.ui.screens.treasury.accounting.balance

import android.util.Log
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -165,7 +164,6 @@ fun BalancePopUpScreen(balanceDetailedViewModel: BalanceDetailedViewModel) {

// The amount field
item {
Log.e("BalancePopUpScreen", "receiptUid: $receiptUid")
OutlinedTextField(
singleLine = true,
isError = balanceModel.errorAmount != null,
Expand Down Expand Up @@ -315,7 +313,6 @@ fun BalancePopUpScreen(balanceDetailedViewModel: BalanceDetailedViewModel) {
nameString, receiptUid, amountString, assignee, descriptionString, date)

if (balanceModel.creating && amountString.toDoubleOrNull() != null) {
Log.e("BalancePopUpScreen", "Creating balance item")
val newBalanceItem =
BalanceItem(
balance.uid,
Expand All @@ -330,7 +327,6 @@ fun BalancePopUpScreen(balanceDetailedViewModel: BalanceDetailedViewModel) {
mutableStatus)
balanceDetailedViewModel.saveCreation(newBalanceItem)
} else if (amountString.toDoubleOrNull() != null) {
Log.e("BalancePopUpScreen", "Editing balance item")
val newBalanceItem =
BalanceItem(
balance.uid,
Expand Down

0 comments on commit 8442818

Please sign in to comment.