Fixed wrong field used in target RPS $ calculation. RPS-27
This commit is contained in:
@@ -51,6 +51,12 @@ var menu = Menu.buildFromTemplate([
|
||||
mainWindow.webContents.session.clearStorageData();
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Sign Out",
|
||||
click() {
|
||||
mainWindow.webContents.send(ipcTypes.app.toRenderer.signOut);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Exit",
|
||||
click() {
|
||||
|
||||
@@ -77,7 +77,7 @@ export function JobsTargetsStatsMolecule({
|
||||
<Statistic
|
||||
title="Target RPS $"
|
||||
style={{ margin: "0rem .5rem" }}
|
||||
value={actPriceSum.percentage(selectedJobTargetPc * 100).toFormat()}
|
||||
value={dbPriceSum.percentage(selectedJobTargetPc * 100).toFormat()}
|
||||
/>
|
||||
<Statistic
|
||||
title="Current RPS $"
|
||||
|
||||
@@ -16,6 +16,7 @@ exports.default = {
|
||||
toRenderer: {
|
||||
updateAvailable: "app_updateAvailable",
|
||||
downloadProgress: "app_downloadProgress",
|
||||
signOut: "app_signOut",
|
||||
},
|
||||
},
|
||||
store: {
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
import { store } from "../redux/store";
|
||||
import { UpsertEstimate } from "./ipc-estimate-utils";
|
||||
import { setScanEstimateList } from "../redux/scan/scan.actions";
|
||||
import { signOutStart } from "../redux/user/user.actions";
|
||||
const { ipcRenderer } = window;
|
||||
|
||||
console.log("----Initializing IPC Listeners in React App.");
|
||||
@@ -74,9 +75,17 @@ ipcRenderer.on(
|
||||
store.dispatch(setUpdateAvailable(updateInfo));
|
||||
}
|
||||
);
|
||||
|
||||
ipcRenderer.on(
|
||||
ipcTypes.default.app.toRenderer.downloadProgress,
|
||||
async (event, progress) => {
|
||||
store.dispatch(setUpdateProgress(progress));
|
||||
}
|
||||
);
|
||||
|
||||
ipcRenderer.on(
|
||||
ipcTypes.default.app.toRenderer.signOut,
|
||||
async (event, progress) => {
|
||||
store.dispatch(signOutStart());
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user