fix build errors due to bad merge

This commit is contained in:
evanpelle
2025-06-02 14:17:55 -07:00
parent 8158ca966a
commit 33f7415d2c
2 changed files with 4 additions and 3 deletions
+3 -1
View File
@@ -89,7 +89,9 @@ export class Leaderboard extends LitElement implements Layer {
switch (this._sortKey) {
case "gold":
sorted = sorted.sort((a, b) => compare(a.gold(), b.gold()));
sorted = sorted.sort((a, b) =>
compare(Number(a.gold()), Number(b.gold())),
);
break;
case "troops":
sorted = sorted.sort((a, b) => compare(a.troops(), b.troops()));
+1 -2
View File
@@ -31,8 +31,7 @@ export class DonateTroopsExecution implements Execution {
this.troops = mg.config().defaultDonationAmount(this.sender);
}
const maxDonation =
mg.config().maxPopulation(this.recipient) -
this.recipient.totalPopulation();
mg.config().maxPopulation(this.recipient) - this.recipient.population();
this.troops = Math.min(this.troops, maxDonation);
}