Skip to content

Commit f312fd0

Browse files
Update BeastMarket.tsx
1 parent 8f7e5f7 commit f312fd0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

components/ui/BeastMarket/BeastMarket.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,12 +1330,19 @@ const BeastMarket: FC<Props> = () => {
13301330
break
13311331

13321332
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+
}
13331340
if (beasts != null) {
13341341
beasts.sort((a: any, b: any) => {
13351342
var aValue = 0
13361343
var bValue = 0
1337-
aValue = dic[a.skin as keyof typeof dic]
1338-
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]
13391346
if (aValue < bValue) return 1
13401347
if (aValue > bValue) return -1
13411348
return 0

0 commit comments

Comments
 (0)