From e47cac71fc565f6242e3899c84ae7eb626c80c6b Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Fri, 5 Jan 2024 11:05:35 +0100 Subject: [PATCH] Added a proper error message when starting a charge process without selecting a payment gateway --- Moonlight/Shared/Views/Account/Payments.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moonlight/Shared/Views/Account/Payments.razor b/Moonlight/Shared/Views/Account/Payments.razor index ba008779..72a0d5a1 100644 --- a/Moonlight/Shared/Views/Account/Payments.razor +++ b/Moonlight/Shared/Views/Account/Payments.razor @@ -134,7 +134,7 @@ private async Task LaunchPayment() { if (SelectedGateway == null) - return; + throw new DisplayException("You need to select a payment method"); var url = await SelectedGateway.Start(Amount); Navigation.NavigateTo(url, true);