From 295fb924714cd919412ef3abf9a4e6b388417dfb Mon Sep 17 00:00:00 2001 From: Dan Ziv Date: Tue, 3 May 2022 11:32:37 +0300 Subject: [PATCH 1/2] fix --- src/components/Features/Transfer/Transfer.js | 3 ++- src/config/strings.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Features/Transfer/Transfer.js b/src/components/Features/Transfer/Transfer.js index b2e5e4f5..49e5cfeb 100644 --- a/src/components/Features/Transfer/Transfer.js +++ b/src/components/Features/Transfer/Transfer.js @@ -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) { diff --git a/src/config/strings.js b/src/config/strings.js index 2a46e5b5..bc23339c 100644 --- a/src/config/strings.js +++ b/src/config/strings.js @@ -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 of {{maxDeposit}} {{symbol}}. Please reduce the amount and try again.', maxBtnTxt: 'Max', balanceTitleTxt: 'Available balance', inputPlaceholderTxt: '0.00', From 05e568256af8ca1e7d7be718e6a8141cb07d5fbc Mon Sep 17 00:00:00 2001 From: Dan Ziv Date: Tue, 3 May 2022 11:54:11 +0300 Subject: [PATCH 2/2] Update strings.js --- src/config/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/strings.js b/src/config/strings.js index bc23339c..ba80b110 100644 --- a/src/config/strings.js +++ b/src/config/strings.js @@ -57,7 +57,7 @@ const strings = { tooManyDigitsErrorMsg: 'Too many decimal places', insufficientBalanceErrorMsg: 'Insufficient balance', maxDepositErrorMsg: - 'You have exceeded the maximum transfer amount of {{maxDeposit}} {{symbol}}. 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',