fix(governance): corrected sorting of upgrade proposals by blockheight (#4729)
This commit is contained in:
parent
08e204fe31
commit
45623f33c5
@ -55,7 +55,10 @@ export const orderByUpgradeBlockHeight = (
|
|||||||
) =>
|
) =>
|
||||||
orderBy(
|
orderBy(
|
||||||
arr,
|
arr,
|
||||||
[(p) => p?.upgradeBlockHeight, (p) => p.vegaReleaseTag],
|
[
|
||||||
|
(p) => (p?.upgradeBlockHeight ? parseInt(p.upgradeBlockHeight, 10) : 0),
|
||||||
|
(p) => p.vegaReleaseTag,
|
||||||
|
],
|
||||||
['desc', 'desc']
|
['desc', 'desc']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user