Skip to content

Commit

Permalink
Merge branch 'develop' into fix-fa-e
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha authored Feb 17, 2023
2 parents fed06a3 + 3fa167e commit 223b2f6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
4 changes: 0 additions & 4 deletions ui/components/app/tab-bar/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@
margin-inline-end: 16px;
flex: 0 0 18px;
color: var(--color-icon-alternative);

@include screen-sm-min {
flex: 0 0 14px;
}
}
}

Expand Down
15 changes: 10 additions & 5 deletions ui/hooks/useShouldAnimateGasEstimations.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,18 @@ export function useShouldAnimateGasEstimations() {
}, [dispatch, isGasLoadingAnimationActive, showLoadingAnimation]);

useEffect(() => {
if (
isGasLoadingAnimationActive === true &&
showLoadingAnimation === false
) {
setTimeout(() => {
let timer;

if (isGasLoadingAnimationActive && !showLoadingAnimation) {
timer = setTimeout(() => {
dispatch(toggleGasLoadingAnimation(false));
}, 2000);
}

return () => {
if (timer) {
clearTimeout(timer);
}
};
}, [dispatch, isGasLoadingAnimationActive, showLoadingAnimation]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@ export default class ConfirmTransactionBase extends Component {
sendTransaction(txData)
.then(() => {
clearConfirmTransaction();
if (!this._isMounted) {
return;
}

this.setState(
{
submitting: false,
Expand All @@ -877,6 +881,10 @@ export default class ConfirmTransactionBase extends Component {
);
})
.catch((error) => {
if (!this._isMounted) {
return;
}

this.setState({
submitting: false,
submitError: error.message,
Expand Down

0 comments on commit 223b2f6

Please sign in to comment.