Skip to content

Commit

Permalink
refactor: remove unnecessary ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav-deriv committed Nov 14, 2023
1 parent ed7e883 commit e5bccc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/api/src/hooks/useCryptoTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ const getStatusDescription = (
return 'Your withdrawal is successful.';
// both:
case 'ERROR':
return `Your ${
transaction_type === 'deposit' ? 'deposit' : 'withdrawal'
} is unsuccessful due to an error on the blockchain. Please contact ${
return `Your ${transaction_type} is unsuccessful due to an error on the blockchain. Please contact ${
transaction_type === 'deposit' ? 'your crypto wallet service provider' : 'us via live chat'
} for more info.`;
default:
Expand Down

0 comments on commit e5bccc4

Please sign in to comment.