fix: compare with correct height when floating header height updates

This commit is contained in:
Satyajit Sahoo
2020-01-05 13:58:24 +01:00
parent c46e0a9c14
commit a9e584c3b7

View File

@@ -338,9 +338,9 @@ export default class CardStack extends React.Component<Props, State> {
height: number;
}) => {
this.setState(({ floatingHeaderHeights }) => {
const previousHeight = this.state.floatingHeaderHeights[route.key];
const previousHeight = floatingHeaderHeights[route.key];
if (previousHeight && previousHeight === height) {
if (previousHeight === height) {
return null;
}