From 3df916548f881405dccb1217774b6fa5d8c00dda Mon Sep 17 00:00:00 2001 From: jessop Date: Thu, 27 Aug 2020 14:51:47 -0400 Subject: [PATCH] return preference get promise --- dist/bundle.es.js | 2 +- src/redux/actions/sync.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 8213dbb..5480a5d 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1778,7 +1778,7 @@ function doPreferenceGet(key, success, fail) { key }; - lbryProxy.preference_get(options).then(result => { + return lbryProxy.preference_get(options).then(result => { if (result) { const preference = result[key]; return success(preference); diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index 2fc7a1e..0cc19f9 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -96,7 +96,7 @@ export function doPreferenceGet(key: string, success: Function, fail?: Function) key, }; - Lbry.preference_get(options) + return Lbry.preference_get(options) .then(result => { if (result) { const preference = result[key];