feat: randomize operators

This commit is contained in:
jinhojang6 2024-10-02 03:17:02 +09:00
parent 19661fd619
commit da5e65741d
1 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,8 @@ const ExploreSection: React.FC<ExploreSectionProps> = () => {
)
})
const randomizedOperators = selectedOperators?.sort(() => Math.random() - 0.5)
const handleFilterChange = (
selectedOptions: string[],
filterType: string,
@ -105,8 +107,8 @@ const ExploreSection: React.FC<ExploreSectionProps> = () => {
/>
</DropdownContainer>
<OperatorGrid
key={selectedOperators?.join(',')}
data={selectedOperators as any}
key={randomizedOperators?.join(',')}
data={randomizedOperators as any}
isLoading={isLoading}
/>
</Container>