File tree Expand file tree Collapse file tree
Users/Register/components/SignUpForm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ const Index: React.FC<IProps> = () => {
3737 } ;
3838 }
3939 resendEmail ( req )
40- . then ( ( ) => {
41- emailCaptcha . close ( ) ;
40+ . then ( async ( ) => {
41+ await emailCaptcha . close ( ) ;
4242 setSuccess ( true ) ;
4343 } )
4444 . catch ( ( err ) => {
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ const Index = () => {
4949 }
5050
5151 getSearchResult ( params )
52- . then ( ( resp ) => {
53- searchCaptcha . close ( ) ;
52+ . then ( async ( resp ) => {
53+ await searchCaptcha . close ( ) ;
5454 setData ( resp ) ;
5555 } )
5656 . catch ( ( err ) => {
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ const Index: React.FC<Props> = ({ callback }) => {
105105 }
106106
107107 register ( reqParams )
108- . then ( ( res ) => {
109- emailCaptcha . close ( ) ;
108+ . then ( async ( res ) => {
109+ await emailCaptcha . close ( ) ;
110110 updateUser ( res ) ;
111111 callback ( ) ;
112112 } )
You can’t perform that action at this time.
0 commit comments