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(() => {
|
lbryProxy.preference_set(options).then(() => {
|
||||||
success(preference);
|
if (success) {
|
||||||
|
success(preference);
|
||||||
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: SYNC_FATAL_ERROR,
|
type: SYNC_FATAL_ERROR,
|
||||||
|
|
|
@ -88,7 +88,9 @@ export function doPreferenceSet(
|
||||||
|
|
||||||
Lbry.preference_set(options)
|
Lbry.preference_set(options)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
success(preference);
|
if (success) {
|
||||||
|
success(preference);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|
Loading…
Reference in a new issue