show error snackbar instead of modal for reward fail

This commit is contained in:
Sean Yesmunt 2019-02-03 22:30:32 -05:00
parent 0cc1b6d78d
commit 375cc397d8
2 changed files with 3 additions and 3 deletions

2
dist/bundle.js vendored
View file

@ -8052,7 +8052,7 @@ function doClaimRewardType(rewardType) {
});
if (options.notifyError) {
dispatch((0, _lbryRedux.doError)(error.message));
dispatch((0, _lbryRedux.doToast)({ message: error.message, isError: true }));
}
};

View file

@ -1,5 +1,5 @@
import Lbryio from 'lbryio';
import { ACTIONS, doError } from 'lbry-redux';
import { ACTIONS, doToast } from 'lbry-redux';
import { selectUnclaimedRewards } from 'redux/selectors/rewards';
import { selectUserIsRewardApproved } from 'redux/selectors/user';
import { doFetchInviteStatus } from 'redux/actions/user';
@ -90,7 +90,7 @@ export function doClaimRewardType(rewardType, options = {}) {
});
if (options.notifyError) {
dispatch(doError(error.message));
dispatch(doToast({ message: error.message, isError: true }));
}
};