From c7afad68b060920fd7fa3ed27c82c55f5c680798 Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Tue, 15 Jul 2025 12:29:57 +0200 Subject: [PATCH] Refactor error handling in PaymentSuccess component to redirect users to profile on payment failure, simplifying the user experience by removing the error display box. --- src/components/PaymentSuccess.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/components/PaymentSuccess.js b/src/components/PaymentSuccess.js index 96bff5d..1f76978 100644 --- a/src/components/PaymentSuccess.js +++ b/src/components/PaymentSuccess.js @@ -153,28 +153,7 @@ class PaymentSuccess extends Component { } if (error) { - return ( - - - Zahlungsüberprüfung fehlgeschlagen - - - {error} - - - Sie werden zu Ihrem Profil weitergeleitet... - - - ); + return ; } if (redirectUrl) {