better handling of bad password errors
This commit is contained in:
parent
88dbef2cd0
commit
70c52e42e8
2 changed files with 6 additions and 2 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -1769,7 +1769,9 @@ function doPreferenceSet(key, value, version, success, fail) {
|
|||
};
|
||||
|
||||
lbryProxy.preference_set(options).then(() => {
|
||||
success(preference);
|
||||
if (success) {
|
||||
success(preference);
|
||||
}
|
||||
}).catch(err => {
|
||||
dispatch({
|
||||
type: SYNC_FATAL_ERROR,
|
||||
|
|
|
@ -88,7 +88,9 @@ export function doPreferenceSet(
|
|||
|
||||
Lbry.preference_set(options)
|
||||
.then(() => {
|
||||
success(preference);
|
||||
if (success) {
|
||||
success(preference);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
dispatch({
|
||||
|
|
Loading…
Reference in a new issue