|
@ -73,7 +73,7 @@ export default class Card extends React.PureComponent { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
componentWillReceiveProps (nextProps) { |
|
|
componentWillReceiveProps (nextProps) { |
|
|
if (this.props.card !== nextProps.card) { |
|
|
|
|
|
|
|
|
if (!this.props.card.equals(nextProps.card)) { |
|
|
this.setState({ embedded: false }); |
|
|
this.setState({ embedded: false }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|