Skip to content

Commit

Permalink
correcting functions parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
shivareddy6 committed Aug 15, 2023
1 parent 981a30a commit 4d5cda7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/actions/orgActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export const getOrgData =
try {
dispatch({ type: actions.GET_ORG_DATA_START });

const isOrgExists = await checkOrgHandleExists(org_handle)(firebase);
const isOrgExists = await checkOrgHandleExists(org_handle)(firestore);

if (isOrgExists) {
const doc = await firestore
Expand Down
2 changes: 1 addition & 1 deletion src/store/actions/profileActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const createOrganization = (orgData) => async (
dispatch({ type: actions.PROFILE_EDIT_START });
const userData = firebase.auth().currentUser;
const { org_name, org_handle, org_country, org_website } = orgData;
const isOrgHandleExists = await checkOrgHandleExists(org_handle)(firebase);
const isOrgHandleExists = await checkOrgHandleExists(org_handle)(firestore);

if (isOrgHandleExists) {
dispatch({
Expand Down

0 comments on commit 4d5cda7

Please sign in to comment.