Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 4, 2023
1 parent f6a67cd commit 55ea899
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@ export function GrantAccess() {
)
}

function intercomAttributes({email, name}) {
function intercomAttributes({ email, name }) {
if (email === '[email protected]') {
const randstr = Math.random().toString(36).slice(2)
return ({ email: `sandbox+${randstr}@plural.sh`, name})

return ({ email: `sandbox+${randstr}@plural.sh`, name })
}

return {email, name}
return { email, name }
}

export function EnsureLogin({ children }) {
Expand Down

0 comments on commit 55ea899

Please sign in to comment.