diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/viewmodels/CommitChangesViewModel.kt b/src/main/kotlin/com/jetpackduba/gitnuro/viewmodels/CommitChangesViewModel.kt index 35fbd91..10b84aa 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/viewmodels/CommitChangesViewModel.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/viewmodels/CommitChangesViewModel.kt @@ -64,7 +64,7 @@ class CommitChangesViewModel @Inject constructor( // Check if it's a different commit before resetting everything if ( state is CommitChangesState.Loading || - state is CommitChangesState.Loaded //&& state.commit != commit + state is CommitChangesState.Loaded && state.commit != commit ) { delayedStateChange( delayMs = MIN_TIME_IN_MS_TO_SHOW_LOAD,