File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Button from '../containers/Button';
10
10
import FormContainer , { FormContainerInner } from '../containers/FormContainer' ;
11
11
import { ControlledFormTextInput } from '../containers/TextInput' ;
12
12
import I18n from '../i18n' ;
13
- import { sendEmailCode } from '../lib/services/restApi' ;
13
+ import { forgotPassword } from '../lib/services/restApi' ;
14
14
import { OutsideParamList } from '../stacks/types' ;
15
15
import { useTheme } from '../theme' ;
16
16
import { showErrorAlert } from '../lib/methods/helpers' ;
@@ -51,7 +51,7 @@ const ForgotPasswordView = (): React.ReactElement => {
51
51
try {
52
52
logEvent ( events . FP_FORGOT_PASSWORD ) ;
53
53
setIsFetching ( true ) ;
54
- const result = await sendEmailCode ( email ) ;
54
+ const result = await forgotPassword ( email ) ;
55
55
if ( result . success ) {
56
56
navigation . pop ( ) ;
57
57
showErrorAlert ( I18n . t ( 'Forgot_password_If_this_email_is_registered' ) , I18n . t ( 'Alert' ) ) ;
You can’t perform that action at this time.
0 commit comments