Fix bug with going Home

This commit is contained in:
Melvin Valster
2019-07-29 21:13:32 +02:00
parent 291ae8ab6d
commit 4797964767
+1 -1
View File
@@ -47,7 +47,7 @@ export class Home extends React.PureComponent<Props> {
if (!this.props.points.equals(decoded)) { if (!this.props.points.equals(decoded)) {
this.props.setPoints(decoded) this.props.setPoints(decoded)
} }
} else if (prevProps.points !== this.props.points) { } else if (prevProps.points !== this.props.points && this.props.classId) {
// Points map changed, update the URL // Points map changed, update the URL
this.updateURL(this.props.points) this.updateURL(this.props.points)
} }