Changes for invite api #24
2 changed files with 3 additions and 3 deletions
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
|
@ -8052,7 +8052,7 @@ function doClaimRewardType(rewardType) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (options.notifyError) {
|
if (options.notifyError) {
|
||||||
dispatch((0, _lbryRedux.doError)(error.message));
|
dispatch((0, _lbryRedux.doToast)({ message: error.message, isError: true }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import Lbryio from 'lbryio';
|
import Lbryio from 'lbryio';
|
||||||
import { ACTIONS, doError } from 'lbry-redux';
|
import { ACTIONS, doToast } from 'lbry-redux';
|
||||||
import { selectUnclaimedRewards } from 'redux/selectors/rewards';
|
import { selectUnclaimedRewards } from 'redux/selectors/rewards';
|
||||||
import { selectUserIsRewardApproved } from 'redux/selectors/user';
|
import { selectUserIsRewardApproved } from 'redux/selectors/user';
|
||||||
import { doFetchInviteStatus } from 'redux/actions/user';
|
import { doFetchInviteStatus } from 'redux/actions/user';
|
||||||
|
@ -90,7 +90,7 @@ export function doClaimRewardType(rewardType, options = {}) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (options.notifyError) {
|
if (options.notifyError) {
|
||||||
dispatch(doError(error.message));
|
dispatch(doToast({ message: error.message, isError: true }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue