Adjust "many options to link" message

This commit is contained in:
Kalle (Sendou)
2021-06-07 18:43:03 +03:00
parent 1091a64a50
commit 80a5fcfaba

View File

@@ -95,8 +95,11 @@ const connectHandler = async (req: NextApiRequest, res: NextApiResponse) => {
} else {
res.status(409).json({
message: `Many options to link. Please contact Sendou#4059 with the one you want to connect: ${players
.map((player) => `https://sendou.ink/player/${player.switchAccountId}`)
.join(" ")}`,
.map(
(player, i) =>
`${i + 1}) https://sendou.ink/player/${player.switchAccountId}`
)
.join(" ")} .`,
});
}
};