Skip to content

Commit 1fca152

Browse files
committed
fixed exotic not clearing bug
1 parent 93f7649 commit 1fca152

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app/routes/Dashboard.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import LoadoutCustomization from '../../components/LoadoutCustomization';
2121
import greyBackground from '../../assets/grey.png';
2222
import ExoticSelector from '../../features/armor-optimization/ExoticSelector';
2323
import { DAMAGE_TYPE } from '../../lib/bungie_api/constants';
24+
import {
25+
updateSelectedExoticClassCombo,
26+
updateSelectedExoticItemHash,
27+
} from '../../store/DashboardReducer';
2428

2529
const PageContainer = styled('div')({
2630
display: 'flex',
@@ -195,6 +199,8 @@ export const Dashboard: React.FC = () => {
195199

196200
const handleCharacterClick = (character: Character) => {
197201
dispatch(updateSelectedCharacter(character));
202+
dispatch(updateSelectedExoticItemHash({ itemHash: null, slot: null }));
203+
dispatch(updateSelectedExoticClassCombo(null));
198204
};
199205

200206
const handleSubclassSelect = (subclass: SubclassConfig) => {

0 commit comments

Comments
 (0)