Skip to content

Commit

Permalink
bug fixes related to emi
Browse files Browse the repository at this point in the history
  • Loading branch information
suyash01 committed Feb 2, 2024
1 parent d4ce03c commit 1cdb9dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ android {
applicationId = "com.suyash.creditmanager"
minSdk = 26
targetSdk = 34
versionCode = 7
versionName = "1.0.6"
versionCode = 8
versionName = "1.0.7"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AddEditEMIViewModel @Inject constructor(
private val _emiDate = mutableStateOf(LocalDate.now())
val emiDate: State<LocalDate> = _emiDate

private val _currentEMIId = mutableIntStateOf(-1)
private val _currentEMIId = mutableIntStateOf(0)
val currentEMIId: State<Int> = _currentEMIId

private val _eventFlow = MutableSharedFlow<UiEvent>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun EMIItem(
style = MaterialTheme.typography.bodySmall,
)
Text(
text = CMUtils.formatDate(emi.date.plusMonths(emi.months.toLong()), dateFormat),
text = CMUtils.formatDate(emi.date.plusMonths(emi.months.toLong() - 1), dateFormat),
style = MaterialTheme.typography.bodySmall,
)
}
Expand Down

0 comments on commit 1cdb9dd

Please sign in to comment.