Skip to content

Commit

Permalink
fix: added 2 new status for withdrawal
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Aug 21, 2023
1 parent 09733d0 commit f1387c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ type TPrivateSocketEndpoints = {
| 'PERFORMING_BLOCKCHAIN_TXN'
| 'PROCESSING'
| 'REJECTED'
| 'REVERTED'
| 'REVERTING'
| 'SENT'
| 'VERIFIED';
/**
Expand Down
14 changes: 14 additions & 0 deletions packages/cashier/src/constants/transaction-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ export const getStatus = (
renderer: 'unsuccessful',
transaction_hash: localize('NA'),
},
REVERTED: {
name: localize('Unsuccessful'),
description: localize(
"Your withdrawal is unsuccessful. We've sent you an email with more information."
),
renderer: 'unsuccessful',
transaction_hash: localize('NA'),
},
REVERTING: {
name: localize('In process'),
description: localize("We're processing your withdrawal."),
renderer: 'in-process',
transaction_hash: formatted_transaction_hash,
},
SENT: {
name: localize('Successful'),
description: localize('Your withdrawal is successful.'),
Expand Down

0 comments on commit f1387c9

Please sign in to comment.