Skip to content

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Jan 28, 2025
1 parent e83661a commit 09bd51d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const DeployModalView = ({ address }: Props) => {
}, [txnHash, address, chainId]);

useEffect(() => {
if (stage === Stage.SUCCESS && translate) {
if (stage === Stage.SUCCESS) {
toastr.success(translate('accountDeployedSuccessfully'));
dispatch(setDeployModalVisible(false));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const SendSummaryModalView = ({

useEffect(() => {
const fetchGasFee = () => {
if (wallet.accounts && translate) {
if (wallet.accounts) {
setGasFeesError(false);
setEstimatingGas(true);
const amountBN = ethers.utils.parseUnits(
Expand Down Expand Up @@ -176,7 +176,7 @@ export const SendSummaryModalView = ({
}, [amount, wallet.erc20TokenBalanceSelected]);

const handleConfirmClick = () => {
if (wallet.accounts && translate) {
if (wallet.accounts) {
const amountBN = ethers.utils.parseUnits(
amount,
wallet.erc20TokenBalanceSelected.decimals,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const UpgradeModelView = ({ address }: Props) => {
}, [txnHash, address, chainId]);

useEffect(() => {
if (stage === Stage.SUCCESS && translate) {
if (stage === Stage.SUCCESS) {
toastr.success(translate('accountUpgradedSuccessfully'));
dispatch(setUpgradeModalVisible(false));
}
Expand Down

0 comments on commit 09bd51d

Please sign in to comment.