Commit 14165217 by Arjun Jhukal

updated the filter method user and response message for withdrawl

parent c1a57457
...@@ -22,7 +22,8 @@ export default function Activities() { ...@@ -22,7 +22,8 @@ export default function Activities() {
{ value: 'password_update', label: 'Security' }, { value: 'password_update', label: 'Security' },
{ value: 'game_play', label: 'Games' }, { value: 'game_play', label: 'Games' },
{ value: 'profile_update', label: 'Profile Updates' }, { value: 'profile_update', label: 'Profile Updates' },
{ value: 'bonus', label: 'Bonuses' } { value: 'bonus', label: 'Bonuses' },
{ value: 'user', label: 'User' }
]; ];
......
...@@ -59,7 +59,7 @@ export default function WithdrawlPage({ ...@@ -59,7 +59,7 @@ export default function WithdrawlPage({
try { try {
const amount = const amount =
values.withdrawl_amounts[values.game_provider]; values.withdrawl_amounts[values.game_provider];
await withdrawMoney({ const response = await withdrawMoney({
wallet: values.wallet_address, wallet: values.wallet_address,
amount: Number(amount), amount: Number(amount),
game_provider: values.game_provider, game_provider: values.game_provider,
...@@ -68,7 +68,7 @@ export default function WithdrawlPage({ ...@@ -68,7 +68,7 @@ export default function WithdrawlPage({
setOpen(false); setOpen(false);
dispatch( dispatch(
showToast({ showToast({
message: "Withdraw request submitted successfully!", message: response?.message || "Withdraw request submitted successfully!",
variant: ToastVariant.SUCCESS, variant: ToastVariant.SUCCESS,
}) })
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment