Skip to content

Commit

Permalink
Fix: completed status added
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamboster committed Nov 8, 2023
1 parent 42dbc3d commit adc5adc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/navigation/services/buy-crypto/utils/sardine-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export interface SardineStatus {

export const sardineGetStatusDetails = (status: string): SardineStatus => {
let statusDescription, statusTitle;
// Draft | Processed | Declined | UserCustody | Complete
// Draft | Processed | Declined | UserCustody | Complete | Completed

switch (status) {
case 'paymentRequestSent':
Expand Down Expand Up @@ -224,6 +224,7 @@ export const sardineGetStatusDetails = (status: string): SardineStatus => {
);
break;
case 'Complete':
case 'Completed':
statusTitle = t('Payment completed');
statusDescription = t(
"The payment is complete and the crypto has been delivered to the user's wallet.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const SardineSettings: React.FC = () => {
: t('Payment request expired')}
</PrTxtStatus>
)}
{pr.status === 'Complete' && (
{['Complete', 'Completed'].includes(pr.status) && (
<PrTxtStatus style={{color: '#01d1a2'}}>
{t('Payment request completed')}
</PrTxtStatus>
Expand Down

0 comments on commit adc5adc

Please sign in to comment.