fix: keep option cards in stable order
This commit is contained in:
@@ -2062,8 +2062,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort by votes desc
|
const sorted = [...opts];
|
||||||
const sorted = [...opts].sort((a, b) => getVoteEntries(b).length - getVoteEntries(a).length);
|
|
||||||
const maxVotes = sorted[0] ? getVoteEntries(sorted[0]).length : 1;
|
const maxVotes = sorted[0] ? getVoteEntries(sorted[0]).length : 1;
|
||||||
const budgetBoard = activeTab === 'budget' ? renderBudgetBoard() : '';
|
const budgetBoard = activeTab === 'budget' ? renderBudgetBoard() : '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user