Skip to content

Commit

Permalink
DDW-16 Table comparison view for stake pools - fixing ordering and to…
Browse files Browse the repository at this point in the history
…oltip opening
  • Loading branch information
DeeJayElly committed Oct 21, 2020
1 parent a635f45 commit 88da679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/renderer/app/components/widgets/BackToTopButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class BackToTopButton extends Component<Props, State> {
getIsBackToTopActive = () => {
const { isActive } = this.state;
const { scrollTopToActivate } = this.props;
if (this.scrollableDomElement instanceof HTMLElement) {
if (this.scrollableDomElement instanceof HTMLElement && this._isMounted) {
const scrollPosition = this.scrollableDomElement.scrollTop;
if (scrollPosition > scrollTopToActivate && !isActive) {
this.setState({ isActive: true });
Expand Down

0 comments on commit 88da679

Please sign in to comment.