diff --git a/react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js b/react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js index 2f6f7f3..b624a78 100644 --- a/react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js +++ b/react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js @@ -103,15 +103,16 @@ class ZcparamsFetchModal extends React.Component { if (data.msg.file === 'proving') { _updateLog = []; _updateLog.push(translate('ZCPARAMS_FETCH.BOTH_KEYS_VERIFIED')); + _updateLog.push(translate('ZCPARAMS_FETCH.CLOSE_THE_MODAL')); this.setState(Object.assign({}, this.state, { updateLog: _updateLog, done: true, })); - window.require('electron').remote.getCurrentWindow().zcashParamsExistPromise() + mainWindow.zcashParamsExistPromise() .then((res) => { - const _errors = zcashParamsCheckErrors(res); - window.require('electron').remote.getCurrentWindow().zcashParamsExist = res; + const _errors = mainWindow.zcashParamsCheckErrors(res); + mainWindow.zcashParamsExist = res; }); } else { this.setState(Object.assign({}, this.state, { @@ -152,7 +153,7 @@ class ZcparamsFetchModal extends React.Component {