actionFindUser.js 257 B

123456
  1. import { actionPromise } from "./actionPromise";
  2. import { findUser } from "./requests";
  3. export const actionFindUser = () => async (dispatch, getState) => {
  4. return await dispatch(actionPromise("findUser", findUser(getState()?.auth?.payload?.sub?.id)));
  5. };