We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7e5f7 commit f312fd0Copy full SHA for f312fd0
components/ui/BeastMarket/BeastMarket.tsx
@@ -1330,12 +1330,19 @@ const BeastMarket: FC<Props> = () => {
1330
break
1331
1332
case "Skin (High-Low)":
1333
+ const dic2 = {
1334
+ Normal: 1,
1335
+ "Metallic Silver": 2,
1336
+ "Cursed Black": 3,
1337
+ "Shiny Gold": 4,
1338
+ "Mythic Diamond": 5,
1339
+ }
1340
if (beasts != null) {
1341
beasts.sort((a: any, b: any) => {
1342
var aValue = 0
1343
var bValue = 0
- aValue = dic[a.skin as keyof typeof dic]
- bValue = dic[b.skin as keyof typeof dic]
1344
+ aValue = dic2[a.skin as keyof typeof dic2]
1345
+ bValue = dic2[b.skin as keyof typeof dic2]
1346
if (aValue < bValue) return 1
1347
if (aValue > bValue) return -1
1348
return 0
0 commit comments