Skip to content

Commit 2362f3d

Browse files
authored
fix: forget password api (#6688)
1 parent 5f57ec6 commit 2362f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/ForgotPasswordView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Button from '../containers/Button';
1010
import FormContainer, { FormContainerInner } from '../containers/FormContainer';
1111
import { ControlledFormTextInput } from '../containers/TextInput';
1212
import I18n from '../i18n';
13-
import { sendEmailCode } from '../lib/services/restApi';
13+
import { forgotPassword } from '../lib/services/restApi';
1414
import { OutsideParamList } from '../stacks/types';
1515
import { useTheme } from '../theme';
1616
import { showErrorAlert } from '../lib/methods/helpers';
@@ -51,7 +51,7 @@ const ForgotPasswordView = (): React.ReactElement => {
5151
try {
5252
logEvent(events.FP_FORGOT_PASSWORD);
5353
setIsFetching(true);
54-
const result = await sendEmailCode(email);
54+
const result = await forgotPassword(email);
5555
if (result.success) {
5656
navigation.pop();
5757
showErrorAlert(I18n.t('Forgot_password_If_this_email_is_registered'), I18n.t('Alert'));

0 commit comments

Comments
 (0)