Skip to content

Commit

Permalink
Fixed bug that was showing empty snackbar at initialization with empt…
Browse files Browse the repository at this point in the history
…y string.
  • Loading branch information
flaviahandrea-vsp committed Jul 30, 2024
1 parent dcc3b75 commit a39796c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ fun ArchiveOnboardingScreen(

LaunchedEffect(errorMessage) {
coroutineScope.launch {
snackbarHostState.showSnackbar(errorMessage)
if (errorMessage.isNotEmpty())
snackbarHostState.showSnackbar(errorMessage)
}
}

Expand Down

0 comments on commit a39796c

Please sign in to comment.