Skip to content

Commit

Permalink
fix: modal error messages not displayed (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv authored May 18, 2022
1 parent 8b72879 commit 353c3b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/UI/Modal/ModalText/ModalText.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.modalText {
font-weight: 400;
font-size: 17px;
font-size: 16px;
letter-spacing: 0.03em;
max-width: inherit;

Expand Down
10 changes: 5 additions & 5 deletions src/hooks/useTransferProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ export const useTransferProgress = () => {
},
error: (type, err) => {
if (type === TransferError.MAX_TOTAL_BALANCE_ERROR) {
const {limitation_error_title, max_total_balance_error_msg} = transferProgressStrings;
const {limitationErrorTitle, maxTotalBalanceErrorMsg} = transferProgressStrings;
return {
type: limitation_error_title,
message: max_total_balance_error_msg
type: limitationErrorTitle,
message: maxTotalBalanceErrorMsg
};
}
const {error_title} = transferProgressStrings;
const {errorTitle} = transferProgressStrings;
return {
type: error_title,
type: errorTitle,
message: err.message
};
}
Expand Down

0 comments on commit 353c3b4

Please sign in to comment.