Add percentage to achievement

This commit is contained in:
Made Baruna 2021-06-04 11:09:18 +07:00
parent e4e50a7d27
commit 5e5facfbfd
No known key found for this signature in database
GPG key ID: 5AA5DA16AA5DCEAD

View file

@ -246,9 +246,8 @@
<p class="font-semibold {category.id === active ? 'text-black' : 'text-white'}">{category.name}</p>
<div class="flex">
<p class="flex-1 {category.id === active ? 'text-gray-900' : 'text-gray-400'}">
{category.finished}
{$t('achievement.of')}
{category.total}
{category.finished}/{category.total}
({((category.finished / category.total) * 100).toFixed(0)}%)
</p>
<p class={category.id === active ? 'text-gray-900' : 'text-gray-400'}>
{category.primogem}