Skip to content

Commit

Permalink
switch to MAIN interaction mode when entering character sell process (#…
Browse files Browse the repository at this point in the history
…67)

Switch to MAIN interaction mode when clicking the sell button in the
character-mode.

closes #65

Co-authored-by: Pandelis Symeonidis <[email protected]>
  • Loading branch information
Pandelissym and Pandelis Symeonidis authored Oct 20, 2023
1 parent 446c61d commit 1957058
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ export const CharactersMode: FC = () => {
</ISTButton>
</PrimaryButton>
</CharacterActions>
<PrimaryButton onClick={() => sell(selectedCharacter)}>
<PrimaryButton
onClick={() => {
setInteractionMode(MAIN_MODE);
sell(selectedCharacter);
}}
>
<ButtonText customColor={color.white}>sell</ButtonText>
</PrimaryButton>
<Store>
Expand Down

0 comments on commit 1957058

Please sign in to comment.