question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the possibiliy to use username if src is false or null

See original GitHub issue

It could be nice if you can add the feature like if src is null or false, show the username by default. Typical case when someone didn’t upload an avatar yet, the src still null so we should use his username (today, we have “width: 64px; height: 64px; background: url(“null”) no-repeat;” and I don’t want to use double “v-if” with double "<avatar>"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
packytagliaferrocommented, May 29, 2018

@saintplay ya, its working for me now too. Not sure why it wasnt before

0reactions
saintplaycommented, May 29, 2018

image

is working for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to check for null current user in Firebase for Flutter
I have updated the code to: User? get user => _auth. · This is because isAnonymous can be null. You have to check...
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
You are accessing a property of an object that is null. For example, document.getElementById('stuff') returns null. So adding .value will ...
Read more >
Nulls in GraphQL: Cheatsheet - Hasura
If you get a null value for a nullable field from the server, there are four possibilities: The value is actually null or...
Read more >
Resolve nullable warnings | Microsoft Learn
Several compiler warnings indicate code that isn't null-safe. Learn how to address those warnings by making your code more resilient.
Read more >
<input>: The Input (Form Input) element - HTML
The HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found