Browse Source

datadir settings fix

v0.25
pbca26 7 years ago
parent
commit
273d717506
  1. 2
      assets/mainWindow/js/loading.js
  2. 9
      react/src/actions/actions/nativeSyncInfo.js

2
assets/mainWindow/js/loading.js

@ -25,7 +25,7 @@ function initSettingsForm() {
appConfSchema[key].initDisplay) {
_htmlOut = `
${_htmlOut}
<tr id="${key}">
<tr>
<td class="left">
${appConfSchema[key].displayName}`;

9
react/src/actions/actions/nativeSyncInfo.js

@ -160,7 +160,7 @@ export function getSyncInfoNative(coin, skipDebug, skipRemote, suppressErrors) {
'Please make sure to run komodod manually',
'Connection error',
'warning',
true
false
)
);
}
@ -260,7 +260,8 @@ export function getBlockTemplate(_json, coin) {
)
);
} else {
if (json.error && json.error.code === -10) {
if (json.error &&
json.error.code === -10) {
console.log('debuglog');
dispatch(
getDebugLogProgress(_json, coin)
@ -311,7 +312,9 @@ export function getDebugLogProgress(_json, coin) {
json = JSON.parse(json);
}
if (json.result && json.result.blocks && json.result.headers) {
if (json.result &&
json.result.blocks &&
json.result.headers) {
_json.result.longestchain = json.result.headers;
_json.result.progress = json.result.blocks * 100 / json.result.headers;
} else if (json.result &&

Loading…
Cancel
Save