Minor adjustments to results table
This commit is contained in:
@@ -176,7 +176,7 @@ const translations = {
|
|||||||
"results.rank": "Rang",
|
"results.rank": "Rang",
|
||||||
"results.game": "Spiel",
|
"results.game": "Spiel",
|
||||||
"results.author": "Autor",
|
"results.author": "Autor",
|
||||||
"results.votesList": "Stimmen (Emojis)",
|
"results.votesList": "Stimmen",
|
||||||
"results.myVote": "Deine Stimme",
|
"results.myVote": "Deine Stimme",
|
||||||
"results.links": "Links",
|
"results.links": "Links",
|
||||||
"results.link.site": "Webseite ↗",
|
"results.link.site": "Webseite ↗",
|
||||||
|
|||||||
@@ -588,7 +588,7 @@ export function neutralEmoji() {
|
|||||||
function formatVotes(votes) {
|
function formatVotes(votes) {
|
||||||
if (!Array.isArray(votes) || votes.length === 0) return "—";
|
if (!Array.isArray(votes) || votes.length === 0) return "—";
|
||||||
const sorted = [...votes].sort((a, b) => a - b);
|
const sorted = [...votes].sort((a, b) => a - b);
|
||||||
return sorted.map((v) => scoreToEmoji(v)).join(" ");
|
return sorted.map((v) => scoreToEmoji(v)).join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatMyVote(score) {
|
function formatMyVote(score) {
|
||||||
|
|||||||
Reference in New Issue
Block a user