better handling of bad password errors

This commit is contained in:
Sean Yesmunt 2020-11-12 14:40:10 -05:00
parent 88dbef2cd0
commit 70c52e42e8
2 changed files with 6 additions and 2 deletions

4
dist/bundle.es.js vendored
View file

@ -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,

View file

@ -88,7 +88,9 @@ export function doPreferenceSet(
Lbry.preference_set(options)
.then(() => {
success(preference);
if (success) {
success(preference);
}
})
.catch(err => {
dispatch({