Added hotfix

This commit is contained in:
2018-12-17 01:51:00 +11:00
parent 689bcd8c6e
commit 2597222075
+1 -1
View File
@@ -16,7 +16,7 @@ class GoogleAnalytics extends React.Component {
componentDidUpdate({location: prevLocation}) {
const { location: { pathname, search } } = this.props;
const isDifferentPathname = pathname !== prevLocation.pathname;
const idDifferentSearch = search !== prevLocation.search;
const isDifferentSearch = search !== prevLocation.search;
if (isDifferentPathname || isDifferentSearch) {
this.logPageChange(pathname, search);