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';
33import { connect } from 'react-redux' ;
44import { bindActionCreators } from 'redux' ;
55import { withTranslation } from 'react-i18next' ;
6- import get from 'lodash/get' ;
76import { Helmet } from 'react-helmet' ;
87import browserHistory from '../../../browserHistory' ;
98import { verifyEmailConfirmation } from '../actions' ;
@@ -22,7 +21,11 @@ class EmailVerificationView extends React.Component {
2221 }
2322 }
2423
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+ } ;
2629
2730 render ( ) {
2831 let status = null ;
@@ -80,7 +83,10 @@ EmailVerificationView.propTypes = {
8083 'invalid'
8184 ] ) ,
8285 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
8490} ;
8591
8692export default withTranslation ( ) (
You can’t perform that action at this time.
0 commit comments