Skip to content

Commit fa2a820

Browse files
author
Lucas Sales
committed
Fix loading flow key tag
1 parent 37de128 commit fa2a820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/monstarlab/arch/extensions/ViewModelEx.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ val ViewModel.loadingFlow: StateFlow<Boolean>
3535

3636
private fun ViewModel.getLoadingMutableStateFlow(): MutableStateFlow<Boolean> {
3737
val flow: MutableStateFlow<Boolean>? = getTag(LOADING_FLOW_KEY)
38-
return flow ?: setTagIfAbsent(ERROR_FLOW_KEY, MutableStateFlow(false))
38+
return flow ?: setTagIfAbsent(LOADING_FLOW_KEY, MutableStateFlow(false))
3939
}
4040

4141
private fun ViewModel.getErrorMutableSharedFlow(): MutableSharedFlow<ViewError> {

0 commit comments

Comments
 (0)