Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update text for the attempt to deposit more than the allowable amount #174

Merged
merged 3 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Features/Transfer/Transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export const Transfer = () => {
} else if (amount > selectedToken.balance) {
errorMsg = insufficientBalanceErrorMsg;
} else if (isL1 && amount > maxDeposit) {
errorMsg = maxDepositErrorMsg;
const {symbol} = selectedToken;
errorMsg = utils.object.evaluate(maxDepositErrorMsg, {maxDeposit, symbol});
}

if (errorMsg) {
Expand Down
2 changes: 1 addition & 1 deletion src/config/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const strings = {
tooManyDigitsErrorMsg: 'Too many decimal places',
insufficientBalanceErrorMsg: 'Insufficient balance',
maxDepositErrorMsg:
'You have exceeded the maximum transfer amount. Please reduce the amount and try again.',
'You have exceeded the maximum transfer amount ({{maxDeposit}} {{symbol}}). Please reduce the amount and try again.',
maxBtnTxt: 'Max',
balanceTitleTxt: 'Available balance',
inputPlaceholderTxt: '0.00',
Expand Down