Changes needed for additional youtube transfer UI #62
3 changed files with 66 additions and 57 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -1626,6 +1626,8 @@ function doClaimRewardType(rewardType, options = {}) {
|
|||
});
|
||||
|
||||
const success = successReward => {
|
||||
// Temporary timeout to ensure the sdk has the correct balance after claiming a reward
|
||||
setTimeout(() => {
|
||||
dispatch(lbryRedux.doUpdateBalance()).then(() => {
|
||||
dispatch({
|
||||
type: lbryRedux.ACTIONS.CLAIM_REWARD_SUCCESS,
|
||||
|
@ -1646,6 +1648,7 @@ function doClaimRewardType(rewardType, options = {}) {
|
|||
options.callback();
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
const failure = error => {
|
||||
|
|
3
dist/bundle.js
vendored
3
dist/bundle.js
vendored
|
@ -2186,6 +2186,8 @@ function doClaimRewardType(rewardType) {
|
|||
});
|
||||
|
||||
var success = function success(successReward) {
|
||||
// Temporary timeout to ensure the sdk has the correct balance after claiming a reward
|
||||
setTimeout(function () {
|
||||
dispatch(Object(lbry_redux__WEBPACK_IMPORTED_MODULE_1__["doUpdateBalance"])()).then(function () {
|
||||
dispatch({
|
||||
type: lbry_redux__WEBPACK_IMPORTED_MODULE_1__["ACTIONS"].CLAIM_REWARD_SUCCESS,
|
||||
|
@ -2206,6 +2208,7 @@ function doClaimRewardType(rewardType) {
|
|||
options.callback();
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
var failure = function failure(error) {
|
||||
|
|
|
@ -71,6 +71,8 @@ export function doClaimRewardType(rewardType, options = {}) {
|
|||
});
|
||||
|
||||
const success = successReward => {
|
||||
// Temporary timeout to ensure the sdk has the correct balance after claiming a reward
|
||||
setTimeout(() => {
|
||||
dispatch(doUpdateBalance()).then(() => {
|
||||
dispatch({
|
||||
type: ACTIONS.CLAIM_REWARD_SUCCESS,
|
||||
|
@ -93,6 +95,7 @@ export function doClaimRewardType(rewardType, options = {}) {
|
|||
options.callback();
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
const failure = error => {
|
||||
|
|
Loading…
Reference in a new issue