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 =