Fix empty name in account info
When the user brings Ethereum accounts, but none of them is known as contributor, instead of "Anonymous" it just shows nothing. This fixes the if condition in the template to eliminate the faulty case.
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
<section id="user-account">
|
<section id="user-account">
|
||||||
{{#if kredits.hasAccounts }}
|
{{#if (and kredits.hasAccounts kredits.currentUser)}}
|
||||||
{{#if kredits.currentUser}}
|
{{kredits.currentUser.name}}
|
||||||
{{kredits.currentUser.name}}
|
{{#if kredits.currentUserIsCore}}
|
||||||
{{#if kredits.currentUserIsCore}}
|
<span class="core-flag">(core)</span>
|
||||||
<span class="core-flag">(core)</span>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
Anonymous
|
Anonymous
|
||||||
|
|||||||
Reference in New Issue
Block a user