@ecency/wallets 1.4.9 → 1.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3372,7 +3372,7 @@ function useWalletOperation(username, asset, operation) {
3372
3372
  return reactQuery.useMutation({
3373
3373
  mutationKey: ["ecency-wallets", asset, operation],
3374
3374
  mutationFn: async (payload) => {
3375
- const operationFn = operationToFunctionMap[asset][operation];
3375
+ const operationFn = operationToFunctionMap[asset]?.[operation];
3376
3376
  if (operationFn) {
3377
3377
  return operationFn(payload);
3378
3378
  }