Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/ComponentDialog.tsx

    r1b5c18b rf727252  
    5757        return () => clearTimeout(timeoutId);
    5858    }, [tempSearchQuery]);
     59
     60    useEffect(() => {
     61        if (open && category) {
     62            setSelectedBrands([]);
     63            setSortOrder('price_desc');
     64            setTempSearchQuery('');
     65            setSearchQuery('');
     66            setPriceRange([0, 2000]);
     67        }
     68    }, [open, category]);
     69
    5970
    6071    useEffect(() => {
     
    297308                                Browsing:
    298309                            </Box>
    299                             <b> {category === 'gpu' ? 'Graphics Cards' : category?.toUpperCase()}</b>
     310                            <b> {category === 'gpu' ? 'GRAPHICS CARDS' : category === 'memory_card' ? 'STORAGE EXPANSION CARDS' : category?.toUpperCase()}</b>
    300311                            {mode === 'forge' && currentBuildId && (
    301312                                <Typography
Note: See TracChangeset for help on using the changeset viewer.