mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
parent
766c8a3e53
commit
423e0854d3
@ -106,17 +106,19 @@ export default function NftsItems({
|
||||
};
|
||||
|
||||
const updateNftDropDownStateKey = (key, isExpanded) => {
|
||||
const currentAccountNftDropdownState =
|
||||
nftsDropdownState[selectedAddress][chainId];
|
||||
|
||||
const newCurrentAccountState = {
|
||||
...currentAccountNftDropdownState,
|
||||
...nftsDropdownState[selectedAddress][chainId],
|
||||
[key]: !isExpanded,
|
||||
};
|
||||
|
||||
nftsDropdownState[selectedAddress][chainId] = newCurrentAccountState;
|
||||
const newState = {
|
||||
...nftsDropdownState,
|
||||
[selectedAddress]: {
|
||||
[chainId]: newCurrentAccountState,
|
||||
},
|
||||
};
|
||||
|
||||
dispatch(updateNftDropDownState(nftsDropdownState));
|
||||
dispatch(updateNftDropDownState(newState));
|
||||
};
|
||||
|
||||
const renderCollection = ({ nfts, collectionName, collectionImage, key }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user