mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
only show exp-chart if _user.history.exp
This commit is contained in:
parent
e43cede165
commit
5fefd4df2b
1 changed files with 3 additions and 1 deletions
|
|
@ -18,7 +18,9 @@
|
|||
</div>
|
||||
|
||||
<div class="progress progress-warning">
|
||||
<span class="progress-text"><a x-bind=click:toggleExpChart><i class=icon-signal></i></a> Exp: {round(_user.exp)} / {_tnl}</span>
|
||||
{#if _user.history.exp}
|
||||
<span class="progress-text"><a x-bind=click:toggleExpChart><i class=icon-signal></i></a> Exp: {round(_user.exp)} / {_tnl}</span>
|
||||
{/}
|
||||
<div class="bar" style="width: {percent(_user.exp,_tnl)}%;"></div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue