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