feat: randomize operators
This commit is contained in:
parent
19661fd619
commit
da5e65741d
|
@ -53,6 +53,8 @@ const ExploreSection: React.FC<ExploreSectionProps> = () => {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const randomizedOperators = selectedOperators?.sort(() => Math.random() - 0.5)
|
||||||
|
|
||||||
const handleFilterChange = (
|
const handleFilterChange = (
|
||||||
selectedOptions: string[],
|
selectedOptions: string[],
|
||||||
filterType: string,
|
filterType: string,
|
||||||
|
@ -105,8 +107,8 @@ const ExploreSection: React.FC<ExploreSectionProps> = () => {
|
||||||
/>
|
/>
|
||||||
</DropdownContainer>
|
</DropdownContainer>
|
||||||
<OperatorGrid
|
<OperatorGrid
|
||||||
key={selectedOperators?.join(',')}
|
key={randomizedOperators?.join(',')}
|
||||||
data={selectedOperators as any}
|
data={randomizedOperators as any}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
/>
|
/>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
Loading…
Reference in New Issue