mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Small fixes
This commit is contained in:
parent
983c08d52f
commit
4d55c2f788
3 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ class App extends PureComponent {
|
|||
}
|
||||
|
||||
componentWillUpdate(nextProps) {
|
||||
if (nextProps.currentUser) {
|
||||
if (!this.props.currentUser && nextProps.currentUser) {
|
||||
runCallbacks('events.identify', nextProps.currentUser);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
Track Page
|
||||
|
||||
*/
|
||||
function segmentTrackPage(empty, route) {
|
||||
function segmentTrackPage(route) {
|
||||
const { name, path } = route;
|
||||
const properties = {
|
||||
url: Utils.getSiteUrl().slice(0, -1) + path,
|
||||
|
|
|
@ -25,5 +25,5 @@ export const addIdentifyFunction = func => {
|
|||
};
|
||||
|
||||
export const addPageFunction = func => {
|
||||
addCallback('router.onUpdate', func);
|
||||
addCallback('router.onUpdate', (empty, route) => func(route));
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue