Code quality

This commit is contained in:
Benoit Marty
2024-03-27 22:02:22 +01:00
committed by Benoit Marty
parent 62dd70d4e1
commit d8b41e79bd

View File

@@ -185,10 +185,11 @@ private fun RunTestButton(state: TroubleshootNotificationsState) {
headlineContent = {
Button(
text = stringResource(
id = if (state.testSuiteState.mainState is AsyncAction.Failure)
id = if (state.testSuiteState.mainState is AsyncAction.Failure) {
R.string.troubleshoot_notifications_screen_action_again
else
} else {
R.string.troubleshoot_notifications_screen_action
}
),
onClick = {
state.eventSink(TroubleshootNotificationsEvents.StartTests)