diff --git a/components/Selects/select-job-id.jsx b/components/Selects/select-job-id.jsx index ef1caf2..efa3e11 100644 --- a/components/Selects/select-job-id.jsx +++ b/components/Selects/select-job-id.jsx @@ -159,7 +159,7 @@ export function JobIdSearchSelect( // }} onChangeText={(search) => { if (search && search !== "") { - console.log("onChangeTextFired!!!!"); + // console.log("onChangeTextFired!!!!"); handleSearch(search); } }} diff --git a/redux/employee/employee.sagas.js b/redux/employee/employee.sagas.js index 9b2fddf..768a543 100644 --- a/redux/employee/employee.sagas.js +++ b/redux/employee/employee.sagas.js @@ -57,7 +57,7 @@ export function* onEmployeeSignInSuccessSaga() { export function* updateEmployeeWithEmployeeId({ payload }) { try { const employeeId = payload.id; - console.log("updateEmployeeWithEmployeeId",employeeId); + // console.log("updateEmployeeWithEmployeeId",employeeId); // logImEXEvent("redux_update_employee_with_employee_id_attempt", employeeId); const result = yield client.query({ query: QUERY_EMPLOYEE_BY_ID, variables: { @@ -73,8 +73,8 @@ export function* updateEmployeeWithEmployeeId({ payload }) { } } catch (error) { yield put(employeeGetRatesFailure(error)); - console.log("Error while getting employee rates.", error); - //Sentry.Native.captureException(error); + // console.log("Error while getting employee rates.", error); + Sentry.Native.captureException(error); } } @@ -104,8 +104,8 @@ export function* getRatesWithEmployeeId({ payload: employeeId }) { } } catch (error) { yield put(employeeGetRatesFailure(error)); - console.log("Error while getting employee rates.", error); - //Sentry.Native.captureException(error); + // console.log("Error while getting employee rates.", error); + Sentry.Native.captureException(error); } } diff --git a/redux/timetickets/timetickets.sagas.js b/redux/timetickets/timetickets.sagas.js index f4de54d..16b925f 100644 --- a/redux/timetickets/timetickets.sagas.js +++ b/redux/timetickets/timetickets.sagas.js @@ -4,7 +4,7 @@ import { timeTicketClockInSuccess, timeTicketClockInFailure, timeTicketClockOutSuccess, - timeTicketClockOutFailure + timeTicketClockOutFailure, } from "./timetickets.actions"; import TimeTicketsActionTypes from "./timetickets.types"; import { client } from "../../graphql/client"; @@ -14,7 +14,6 @@ import { logImEXEvent } from "../../firebase/firebase.analytics"; import { selectCurrentTimeTicket } from "./timetickets.selectors"; import { INSERT_NEW_TIME_TICKET } from "../../graphql/timetickets.queries"; - export function* onCreateTimeTicketStart() { yield takeLatest( TimeTicketsActionTypes.TIME_TICKET_CREATE_START, @@ -24,7 +23,7 @@ export function* onCreateTimeTicketStart() { export function* insertNewTimeTicket({ payload: { timeTicketInput } }) { try { logImEXEvent("redux_insertnewtimeticket_attempt"); - console.log("Saga, TIME_TICKET_CREATE_START :", timeTicketInput); + // console.log("Saga, TIME_TICKET_CREATE_START :", timeTicketInput); //console.loging // console.log("Saga", employeeId, pin, pin); const timeTicket = yield select(selectCurrentTimeTicket); @@ -73,13 +72,18 @@ export function* insertNewTimeTicket({ payload: { timeTicketInput } }) { } export function* onClockOutStart() { - yield takeLatest(TimeTicketsActionTypes.TIME_TICKET_CLOCKOUT_START,clockOutStart); + yield takeLatest( + TimeTicketsActionTypes.TIME_TICKET_CLOCKOUT_START, + clockOutStart + ); } export function* clockOutStart({ payload: { timeTicketInput } }) { try { logImEXEvent("redux_clockOutStart_attempt"); //console.loging - console.log("Saga, clockOutStart :", timeTicketInput); + + // console.log("Saga, clockOutStart :", timeTicketInput); + // const timeTicket = yield select(selectCurrentTimeTicket); // const response = yield call(axios.post, "/tech/login", { // shopid: bodyshop.id, @@ -125,16 +129,24 @@ export function* clockOutStart({ payload: { timeTicketInput } }) { } } export function* onClockInStart() { - yield takeLatest(TimeTicketsActionTypes.TIME_TICKET_CLOCKIN_START,clockInStart); + yield takeLatest( + TimeTicketsActionTypes.TIME_TICKET_CLOCKIN_START, + clockInStart + ); } export function* clockInStart({ payload: { timeTicketInput } }) { try { logImEXEvent("redux_clockInStart_attempt"); - console.log("Saga, clockInStart :", timeTicketInput); + + // console.log("Saga, clockInStart :", timeTicketInput); } catch (error) { yield put(timeTicketClockInFailure(error)); } } export function* timeTicketsSagas() { - yield all([call(onCreateTimeTicketStart),call(onClockOutStart),call(onClockInStart)]); + yield all([ + call(onCreateTimeTicketStart), + call(onClockOutStart), + call(onClockInStart), + ]); } diff --git a/redux/user/user.selectors.js b/redux/user/user.selectors.js index de0c823..fe3fdec 100644 --- a/redux/user/user.selectors.js +++ b/redux/user/user.selectors.js @@ -36,10 +36,10 @@ export const selectRestrictClaimableHoursFlag = createSelector( [selectUser], (user) => { if (!user.bodyshop || !user.bodyshop.tt_enforce_hours_for_tech_console) { - console.info("selectRestrictClaimableHoursFlag returning null"); + // console.info("selectRestrictClaimableHoursFlag returning null"); return null; } - console.info("selectRestrictClaimableHoursFlag returning :", user.bodyshop.tt_enforce_hours_for_tech_console); + // console.info("selectRestrictClaimableHoursFlag returning :", user.bodyshop.tt_enforce_hours_for_tech_console); return user.bodyshop.tt_enforce_hours_for_tech_console; } );