Guest User

Untitled

a guest
Aug 2nd, 2022
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const upsertCompany =
  2.   (company: ICompany) => async (dispatch: AppDispatch) => {
  3.     try {
  4.       await API.upsert.company(company);
  5.       dispatch(loadCompanies());
  6.     } catch (e) {
  7.       dispatch(showError('Couldn't upsert company'));
  8.    }
  9.  };
Advertisement
Add Comment
Please, Sign In to add comment