Skip to content

Commit a077155

Browse files
author
Parth Shah
committed
Merge branch 'hotfix/v1.3.1' into dev
2 parents ec3a185 + 6857555 commit a077155

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/actions/loadUser.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ export function loadUserSuccess(dispatch, token) {
6666
firstName: currentUser.firstName,
6767
lastName: currentUser.lastName,
6868
email: currentUser.email,
69-
createdAt: currentUser.createdAt
69+
createdAt: currentUser.createdAt,
70+
avatar: currentUser.photoURL
7071
}
7172
}
7273
}]
73-
if (window.analytics) {
74-
const anonymousId = window.analtyics.user().anonymousId()
74+
if (window.analytics && window.analytics.user()) {
75+
const anonymousId = window.analytics.user().anonymousId()
7576
if (anonymousId) {
7677
analyticsEvents.push({
7778
eventType: EventTypes.alias,

src/components/Layout/Layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Layout = (props) => {
2525
if (isLoadingUser) {
2626
return (<div />)
2727
} else if (MAINTENANCE_MODE) {
28-
return (<Maintenance />)
28+
return <Maintenance />
2929
} else {
3030
return (
3131
<div>

0 commit comments

Comments
 (0)