Skip to content

Commit

Permalink
remove sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Apr 26, 2024
1 parent 0911673 commit 6d8f1e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/keystone/admin/components/Incentives/War.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ export function War({ incentive, incentiveUpdate }: WarProps) {
-1,
);

const sortedOptions = [...incentiveRawData.options].sort((a, b) => b.total - a.total);

return (
<Stack gap="medium">
<FieldContainer>
Expand All @@ -144,7 +142,7 @@ export function War({ incentive, incentiveUpdate }: WarProps) {
<span></span>
<span>Total</span>
<span></span>
{sortedOptions.map((item, i) => {
{incentiveRawData.options.map((item, i) => {
return (
<>
<TextInput
Expand Down

0 comments on commit 6d8f1e8

Please sign in to comment.