Skip to content

Commit 393e64c

Browse files
committed
fix(web): name history is totally grayed out when full data is not ready
1 parent b816c38 commit 393e64c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/components/PlayerNameHistory.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
<li
55
v-for="({name, changedToAt}, idx) of names"
66
:key="changedToAt || 'init'"
7-
:class="['p-3 border-t first:border-t-0 border-gray-300 flex items-center', {'bg-gray-50 text-gray-500': idx < lastInServer || firstInServer < idx}]"
7+
:class="[
8+
'p-3 border-t first:border-t-0 border-gray-300 flex items-center',
9+
{'bg-gray-50 text-gray-500': idx < lastInServer || (firstInServer === -1 ? Infinity : firstInServer) < idx},
10+
]"
811
>
912
<strong class="font-normal mr-3">{{ name }}</strong>
1013
<span class="ml-auto text-gray-500 font-tnum">{{ formatDate(changedToAt) || t('nyaa.player_name_history.first_name') }}</span>

0 commit comments

Comments
 (0)