Skip to content

Commit

Permalink
Fix grammatical error in the validation text (#856)
Browse files Browse the repository at this point in the history
Closes #855

This PR fixes grammatical error in the validation text.

**Before**

> The amount is below the minimum required withdraw of 0.01 BTC.

**After**

> The amount is below the minimum required withdrawal of 0.01 BTC.


![Screenshot 2024-11-14 at 08 20
15](https://github.com/user-attachments/assets/9bb39a6c-f6b7-4f1b-8e9f-2e5bb0d09129)
  • Loading branch information
nkuba authored Nov 14, 2024
2 parents 874d42c + 69bf914 commit f372836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapp/src/utils/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function validateTokenAmount(
if (isMaximumValueExceeded) return ERRORS_BY_ACTION_TYPE.EXCEEDED_VALUE
if (!isMinimumValueFulfilled)
return ERRORS_BY_ACTION_TYPE.INSUFFICIENT_VALUE(
actionType === ACTION_FLOW_TYPES.STAKE ? "deposit" : "withdraw",
actionType === ACTION_FLOW_TYPES.STAKE ? "deposit" : "withdrawal",
fixedPointNumberToString(minValue, decimals),
)

Expand Down

0 comments on commit f372836

Please sign in to comment.