Skip to content

Commit

Permalink
fix multi select
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzaizzat committed Apr 30, 2024
1 parent fc6fd95 commit bfee7a0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ export function GalleryEditorNftSelectorContractScreen() {
const handleSelectedAllPress = useCallback(() => {
setSelectedTokens((prevTokens) => {
if (prevTokens.length > 0) {
setIsMultiselectMode(false);
return [];
} else {
setIsMultiselectMode(true);
return nonNullableTokens.map((token) => {
return {
id: token.dbid,
Expand Down

0 comments on commit bfee7a0

Please sign in to comment.