Do not show tutorial if screen is closed (#6401)

This commit is contained in:
Elias Nahum 2022-06-17 14:51:50 -04:00 committed by GitHub
parent ee3b655991
commit 47fe3e2219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

@ -139,8 +139,10 @@ export default function UserListRow({
endX: x + w + 20,
endY: y + h,
};
setShowTutorial(true);
setItemBounds(bounds);
if (viewRef.current) {
setShowTutorial(true);
setItemBounds(bounds);
}
});
};

View file

@ -202,8 +202,11 @@ const ServerItem = ({
endX: x + w + 20,
endY: y + h,
};
setShowTutorial(true);
setItemBounds(bounds);
if (viewRef.current) {
setShowTutorial(true);
setItemBounds(bounds);
}
});
};