Skip to content

Commit 6f1493d

Browse files
committed
fix(home): Default isAccountsPresent to true
The `isAccountsPresent` flag in `HomeUiState` is now defaulted to `true`. This resolves an issue where the "No Accounts Found" message was briefly displayed even when accounts were present, due to the initial false value.
1 parent 015c21e commit 6f1493d

File tree

1 file changed

+1
-1
lines changed
  • feature/home/src/commonMain/kotlin/org/mifos/mobile/feature/home

1 file changed

+1
-1
lines changed

feature/home/src/commonMain/kotlin/org/mifos/mobile/feature/home/HomeViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ internal data class HomeState(
401401
val firstName: String? = "",
402402
val currency: String? = "",
403403
val decimals: Int = 2,
404-
val isAccountsPresent: Boolean = false,
404+
val isAccountsPresent: Boolean = true,
405405
val username: String = "",
406406
val clientAccounts: ClientAccounts? = null,
407407
val notificationCount: Int = 0,

0 commit comments

Comments
 (0)