@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.
package/dist/node/index.mjs
CHANGED
|
@@ -3345,7 +3345,7 @@ function useWalletOperation(username, asset, operation) {
|
|
|
3345
3345
|
return useMutation({
|
|
3346
3346
|
mutationKey: ["ecency-wallets", asset, operation],
|
|
3347
3347
|
mutationFn: async (payload) => {
|
|
3348
|
-
const operationFn = operationToFunctionMap[asset][operation];
|
|
3348
|
+
const operationFn = operationToFunctionMap[asset]?.[operation];
|
|
3349
3349
|
if (operationFn) {
|
|
3350
3350
|
return operationFn(payload);
|
|
3351
3351
|
}
|