mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: switch arround?
This commit is contained in:
parent
ccab996c6f
commit
5ae9d387b4
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ export function diffHighSeasLB(oldLB: Leaderboard, newLB: Leaderboard) {
|
|||
let newRankMessage =
|
||||
newLB.indexOf(entry) !== oldLB.findIndex((e) => e.id == entry.id)
|
||||
? newLB.indexOf(entry) - oldLB.findIndex((e) => e.id == entry.id) > 0
|
||||
? `You have moved up to #${newLB.indexOf(entry) + 1} from #${oldLB.findIndex((e) => e.id == entry.id) + 1} -- diff of ${newLB.indexOf(entry) - oldLB.findIndex((e) => e.id == entry.id)}, o: ${oldLB.findIndex((e) => e.id == entry.id)}, n: ${newLB.indexOf(entry)} (debug)`
|
||||
: `You have moved down to #${newLB.indexOf(entry) + 1} from #${oldLB.findIndex((e) => e.id == entry.id) + 1} -- diff of ${newLB.indexOf(entry) - oldLB.findIndex((e) => e.id == entry.id)}, o: ${oldLB.findIndex((e) => e.id == entry.id)}, n: ${newLB.indexOf(entry)} (debug)`
|
||||
? `You have moved down to #${newLB.indexOf(entry) + 1} from #${oldLB.findIndex((e) => e.id == entry.id) + 1} -- diff of ${newLB.indexOf(entry) - oldLB.findIndex((e) => e.id == entry.id)}, o: ${oldLB.findIndex((e) => e.id == entry.id)}, n: ${newLB.indexOf(entry)} (debug)`
|
||||
:`You have moved up to #${newLB.indexOf(entry) + 1} from #${oldLB.findIndex((e) => e.id == entry.id) + 1} -- diff of ${newLB.indexOf(entry) - oldLB.findIndex((e) => e.id == entry.id)}, o: ${oldLB.findIndex((e) => e.id == entry.id)}, n: ${newLB.indexOf(entry)} (debug)`
|
||||
: ``;
|
||||
if (diff > 0) {
|
||||
msgs.push(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue