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 = ( 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>