Skip to content

Commit

Permalink
Merge branch 'develop' into phishing-warning-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-mihajlovic authored Feb 2, 2023
2 parents 2345646 + 493ab6c commit b3bd332
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/pages/home/home.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ export default class Home extends PureComponent {
setRpcTarget,
} = this.props;

const onAutoHide = () => setNewCollectibleAddedMessage('');
const onAutoHide = () => {
setNewCollectibleAddedMessage('');
setRemoveCollectibleMessage('');
};

const autoHideDelay = 5 * SECOND;

return (
Expand Down Expand Up @@ -363,7 +367,7 @@ export default class Home extends PureComponent {
<button
className="fas fa-times home__new-nft-notification-close"
title={t('close')}
onClick={() => setRemoveCollectibleMessage('')}
onClick={onAutoHide}
/>
</Box>
}
Expand Down

0 comments on commit b3bd332

Please sign in to comment.