diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 35cc996..5d360ef 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1984,11 +1984,11 @@ function doSetSync(oldHash, newHash, data) { new_hash: newHash, data }, 'post').then(response => { - if (!response.success) { + if (!response.hash) { return dispatch({ type: SET_SYNC_FAILED, data: { - error: response.error + error: 'No hash returned for sync/set.' } }); } diff --git a/dist/bundle.js b/dist/bundle.js index 0b80d80..6f5a036 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -3411,11 +3411,11 @@ function doSetSync(oldHash, newHash, data) { new_hash: newHash, data: data }, 'post').then(function (response) { - if (!response.success) { + if (!response.hash) { return dispatch({ type: constants_action_types__WEBPACK_IMPORTED_MODULE_0__["SET_SYNC_FAILED"], data: { - error: response.error + error: 'No hash returned for sync/set.' } }); } diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index 1c61bd0..89fe69b 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -10,10 +10,10 @@ export function doSetSync(oldHash, newHash, data) { Lbryio.call('sync', 'set', { old_hash: oldHash, new_hash: newHash, data }, 'post') .then(response => { - if (!response.success) { + if (!response.hash) { return dispatch({ type: ACTIONS.SET_SYNC_FAILED, - data: { error: response.error }, + data: { error: 'No hash returned for sync/set.' }, }); }