Skip to content

Conversation

prajwalkpandey
Copy link

@prajwalkpandey prajwalkpandey commented May 23, 2020

Default pic issue fixed #564

@@ -32,6 +32,9 @@ export default Service.extend({
.queryRecord("user", { custom: { ext: "url", url: "me" } })
.then(user => {
this.set("user", user);
if(this.user.photo==""){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ternary operator instead. and check for all falsy values (not only "")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants