Resolve 2021 age Issue
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
},
|
||||
"1.0.20": {
|
||||
"title": "Release Notes for 1.0.20",
|
||||
"date": "TBD",
|
||||
"notes": ""
|
||||
"date": "04/29/2021",
|
||||
"notes": "Bug Fixes: \n- Improved validation for mileage from estimating systems to be more fault tolerant."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import "antd/dist/antd.css";
|
||||
import LogRocket from "logrocket";
|
||||
//import LogRocket from "logrocket";
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { Provider } from "react-redux";
|
||||
@@ -9,7 +9,8 @@ import App from "./App/App";
|
||||
import "./index.css";
|
||||
import { persistor, store } from "./redux/store";
|
||||
require("dotenv").config();
|
||||
if (process.env.NODE_ENV === "production") LogRocket.init("imex/rps");
|
||||
|
||||
//if (process.env.NODE_ENV === "production") LogRocket.init("imex/rps");
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
|
||||
@@ -20,7 +20,7 @@ export function CalculateVehicleAge(job) {
|
||||
const parsedYr = parseInt(job.v_model_yr);
|
||||
|
||||
const vehicleYr =
|
||||
moment().year() - 2000 > parsedYr ? 2000 + parsedYr : 1900 + parsedYr;
|
||||
moment().year() - 2000 >= parsedYr ? 2000 + parsedYr : 1900 + parsedYr;
|
||||
|
||||
let ret = moment(job.close_date || new Date()).year() - vehicleYr;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { message } from "antd";
|
||||
import LogRocket from "logrocket";
|
||||
//import LogRocket from "logrocket";
|
||||
import { all, call, put, takeLatest } from "redux-saga/effects";
|
||||
import {
|
||||
auth,
|
||||
@@ -125,9 +125,9 @@ export function* onSignInSuccess() {
|
||||
export function* signInSuccessSaga({ payload }) {
|
||||
//Query for the Correct Bodyshop
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.setUserName, payload.email);
|
||||
LogRocket.identify(payload.email, {
|
||||
email: payload.email,
|
||||
});
|
||||
// LogRocket.identify(payload.email, {
|
||||
// email: payload.email,
|
||||
// });
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.checkForUpdates);
|
||||
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
|
||||
Reference in New Issue
Block a user