File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
client/modules/User/pages Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import React from 'react';
3
3
import { connect } from 'react-redux' ;
4
4
import { bindActionCreators } from 'redux' ;
5
5
import { withTranslation } from 'react-i18next' ;
6
- import get from 'lodash/get' ;
7
6
import { Helmet } from 'react-helmet' ;
8
7
import browserHistory from '../../../browserHistory' ;
9
8
import { verifyEmailConfirmation } from '../actions' ;
@@ -22,7 +21,11 @@ class EmailVerificationView extends React.Component {
22
21
}
23
22
}
24
23
25
- verificationToken = ( ) => get ( this . props , 'location.query.t' , null ) ;
24
+ verificationToken = ( ) => {
25
+ const { location } = this . props ;
26
+ const searchParams = new URLSearchParams ( location . search ) ;
27
+ return searchParams . get ( 't' ) ;
28
+ } ;
26
29
27
30
render ( ) {
28
31
let status = null ;
@@ -80,7 +83,10 @@ EmailVerificationView.propTypes = {
80
83
'invalid'
81
84
] ) ,
82
85
verifyEmailConfirmation : PropTypes . func . isRequired ,
83
- t : PropTypes . func . isRequired
86
+ t : PropTypes . func . isRequired ,
87
+ location : PropTypes . shape ( {
88
+ search : PropTypes . string . isRequired
89
+ } ) . isRequired
84
90
} ;
85
91
86
92
export default withTranslation ( ) (
You can’t perform that action at this time.
0 commit comments