diff --git a/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs b/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs index 0fbecb17..a981afcb 100644 --- a/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs +++ b/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs @@ -11,5 +11,5 @@ public interface IAlertService public class AlertService : IAlertService { public Task ShowErrorAlertAsync(string title, string message, string cancel = "OK") - => Application.Current!.Windows[0].Page!.DisplayAlert(title, message, cancel); + => Application.Current!.Windows[0].Page!.DisplayAlertAsync(title, message, cancel); }