Skip to content

Commit

Permalink
Remove unused dataUpdateAsset action
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Oct 13, 2023
1 parent fa312dc commit 3bc7522
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/redux/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,29 +394,6 @@ export const dataResetState = () => (
dispatch({ type: DATA_CLEAR_STATE });
};

/**
* Updates account asset data in state for a specific asset and saves to account
* local storage.
*
* @param assetData The updated asset, which replaces or adds to the current
* account's asset data based on it's `uniqueId`.
*/
export const dataUpdateAsset = (assetData: ParsedAddressAsset) => (
dispatch: Dispatch<DataLoadAccountAssetsDataSuccessAction>,
getState: AppGetState
) => {
const { accountAddress, network } = getState().settings;
const { accountAssetsData } = getState().data;
const updatedAssetsData = {
...accountAssetsData,
[assetData.uniqueId]: assetData,
};
dispatch({
payload: updatedAssetsData,
type: DATA_LOAD_ACCOUNT_ASSETS_DATA_SUCCESS,
});
};

/**
* Checks whether or not metadata received from Zerion is valid.
*
Expand Down

0 comments on commit 3bc7522

Please sign in to comment.