make sure rewards are updated after email is confirmed

This commit is contained in:
Sean Yesmunt 2019-01-09 00:01:45 -05:00
parent 66bbd4aeac
commit 6969aa9af1
4 changed files with 6 additions and 11 deletions

View file

@ -52,7 +52,7 @@
"hast-util-sanitize": "^1.1.2",
"keytar": "^4.2.1",
"lbry-redux": "lbryio/lbry-redux#820b6eeadf9e58c1e5027fd4d92808ba817b410e",
"lbryinc": "lbryio/lbryinc#cee70d482cf352f2e66215fa109f4178406228ca",
"lbryinc": "lbryio/lbryinc#b3bb8c67745235ef54baea95accaedaa4bb86d4d",
"localforage": "^1.7.1",
"mammoth": "^1.4.6",
"mime": "^2.3.1",

View file

@ -69,12 +69,7 @@ class UserEmailNew extends React.PureComponent<Props, State> {
<div className="card__actions">
<Submit label="Submit" disabled={isPending} />
{cancelButton}
<br /><br />
</div>
<p className="card__content help">
{`${__('Your email may be used to sync usage data across devices.')} `}
</p>
</Form>
</span>
);

View file

@ -2,7 +2,7 @@ import { connect } from 'react-redux';
import {
selectEmailToVerify,
doUserResendVerificationEmail,
doUserFetch,
doUserCheckEmailVerified,
selectUser,
} from 'lbryinc';
import { doNavigate } from 'redux/actions/navigation';
@ -15,7 +15,7 @@ const select = state => ({
const perform = dispatch => ({
resendVerificationEmail: email => dispatch(doUserResendVerificationEmail(email)),
doCheckEmailVerified: () => dispatch(doUserFetch(true)),
checkEmailVerified: () => dispatch(doUserCheckEmailVerified()),
navigate: path => dispatch(doNavigate(path)),
});

View file

@ -6,7 +6,7 @@ type Props = {
cancelButton: React.Node,
email: string,
resendVerificationEmail: string => void,
doCheckEmailVerified: () => void,
checkEmailVerified: () => void,
user: {
has_verified_email: boolean,
},
@ -40,8 +40,8 @@ class UserEmailVerify extends React.PureComponent<Props> {
}
checkIfVerified() {
const { doCheckEmailVerified } = this.props;
doCheckEmailVerified();
const { checkEmailVerified } = this.props;
checkEmailVerified();
}
emailVerifyCheckInterval: ?IntervalID;