From e09ae088347949cf5836dc0656922d60f3fdc4d6 Mon Sep 17 00:00:00 2001 From: Wikzyy Date: Tue, 17 Jun 2025 17:40:10 +0700 Subject: [PATCH] fix error message withdraw emoney and saldo merchant --- src/pages/transaction/withdrawl-emoney/blocks/WithdrawInput.tsx | 2 +- src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/transaction/withdrawl-emoney/blocks/WithdrawInput.tsx b/src/pages/transaction/withdrawl-emoney/blocks/WithdrawInput.tsx index 15b4b7d..26b61bb 100644 --- a/src/pages/transaction/withdrawl-emoney/blocks/WithdrawInput.tsx +++ b/src/pages/transaction/withdrawl-emoney/blocks/WithdrawInput.tsx @@ -102,7 +102,7 @@ const WithdrawInput = () => { if (response?.status == true) { toast.success('Success Request Topup'); } else { - toast.error(`${response?.message?.message}`); + toast.error(`${response?.message}`); } } catch (error: any) { const errorMessage = diff --git a/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx b/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx index e6e7ef0..9496102 100644 --- a/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx +++ b/src/pages/transaction/withdrawl-saldo/TransactionWithdraw.tsx @@ -117,7 +117,7 @@ const TransactionWithdraw = () => { await fetchWallets(); toast.success('Success Request Topup'); } else { - toast.error(`${response?.message?.message}`); + toast.error(`${response?.message}`); } } catch (error: any) { const errorMessage =