Skip to content

Commit f465f13

Browse files
authored
fix(authenticator): Make onDisplayMessage not a suspending function (#33)
1 parent ee243ff commit f465f13

File tree

1 file changed

+1
-1
lines changed
  • authenticator/src/main/java/com/amplifyframework/ui/authenticator/ui

1 file changed

+1
-1
lines changed

authenticator/src/main/java/com/amplifyframework/ui/authenticator/ui/Authenticator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fun Authenticator(
9797
errorContent: @Composable (state: ErrorState) -> Unit = { AuthenticatorError(it) },
9898
headerContent: @Composable () -> Unit = {},
9999
footerContent: @Composable () -> Unit = {},
100-
onDisplayMessage: (suspend (AuthenticatorMessage) -> Unit)? = null,
100+
onDisplayMessage: ((AuthenticatorMessage) -> Unit)? = null,
101101
content: @Composable (state: SignedInState) -> Unit
102102
) {
103103
val snackbarState = remember { SnackbarHostState() }

0 commit comments

Comments
 (0)