make sure rewards are updated after email is confirmed
This commit is contained in:
parent
66bbd4aeac
commit
6969aa9af1
4 changed files with 6 additions and 11 deletions
|
@ -52,7 +52,7 @@
|
||||||
"hast-util-sanitize": "^1.1.2",
|
"hast-util-sanitize": "^1.1.2",
|
||||||
"keytar": "^4.2.1",
|
"keytar": "^4.2.1",
|
||||||
"lbry-redux": "lbryio/lbry-redux#820b6eeadf9e58c1e5027fd4d92808ba817b410e",
|
"lbry-redux": "lbryio/lbry-redux#820b6eeadf9e58c1e5027fd4d92808ba817b410e",
|
||||||
"lbryinc": "lbryio/lbryinc#cee70d482cf352f2e66215fa109f4178406228ca",
|
"lbryinc": "lbryio/lbryinc#b3bb8c67745235ef54baea95accaedaa4bb86d4d",
|
||||||
"localforage": "^1.7.1",
|
"localforage": "^1.7.1",
|
||||||
"mammoth": "^1.4.6",
|
"mammoth": "^1.4.6",
|
||||||
"mime": "^2.3.1",
|
"mime": "^2.3.1",
|
||||||
|
|
|
@ -69,12 +69,7 @@ class UserEmailNew extends React.PureComponent<Props, State> {
|
||||||
<div className="card__actions">
|
<div className="card__actions">
|
||||||
<Submit label="Submit" disabled={isPending} />
|
<Submit label="Submit" disabled={isPending} />
|
||||||
{cancelButton}
|
{cancelButton}
|
||||||
<br /><br />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p className="card__content help">
|
|
||||||
{`${__('Your email may be used to sync usage data across devices.')} `}
|
|
||||||
</p>
|
|
||||||
</Form>
|
</Form>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { connect } from 'react-redux';
|
||||||
import {
|
import {
|
||||||
selectEmailToVerify,
|
selectEmailToVerify,
|
||||||
doUserResendVerificationEmail,
|
doUserResendVerificationEmail,
|
||||||
doUserFetch,
|
doUserCheckEmailVerified,
|
||||||
selectUser,
|
selectUser,
|
||||||
} from 'lbryinc';
|
} from 'lbryinc';
|
||||||
import { doNavigate } from 'redux/actions/navigation';
|
import { doNavigate } from 'redux/actions/navigation';
|
||||||
|
@ -15,7 +15,7 @@ const select = state => ({
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
resendVerificationEmail: email => dispatch(doUserResendVerificationEmail(email)),
|
resendVerificationEmail: email => dispatch(doUserResendVerificationEmail(email)),
|
||||||
doCheckEmailVerified: () => dispatch(doUserFetch(true)),
|
checkEmailVerified: () => dispatch(doUserCheckEmailVerified()),
|
||||||
navigate: path => dispatch(doNavigate(path)),
|
navigate: path => dispatch(doNavigate(path)),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ type Props = {
|
||||||
cancelButton: React.Node,
|
cancelButton: React.Node,
|
||||||
email: string,
|
email: string,
|
||||||
resendVerificationEmail: string => void,
|
resendVerificationEmail: string => void,
|
||||||
doCheckEmailVerified: () => void,
|
checkEmailVerified: () => void,
|
||||||
user: {
|
user: {
|
||||||
has_verified_email: boolean,
|
has_verified_email: boolean,
|
||||||
},
|
},
|
||||||
|
@ -40,8 +40,8 @@ class UserEmailVerify extends React.PureComponent<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkIfVerified() {
|
checkIfVerified() {
|
||||||
const { doCheckEmailVerified } = this.props;
|
const { checkEmailVerified } = this.props;
|
||||||
doCheckEmailVerified();
|
checkEmailVerified();
|
||||||
}
|
}
|
||||||
|
|
||||||
emailVerifyCheckInterval: ?IntervalID;
|
emailVerifyCheckInterval: ?IntervalID;
|
||||||
|
|
Loading…
Reference in a new issue