Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/ForgotPasswordView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Button from '../containers/Button';
import FormContainer, { FormContainerInner } from '../containers/FormContainer';
import { ControlledFormTextInput } from '../containers/TextInput';
import I18n from '../i18n';
import { sendEmailCode } from '../lib/services/restApi';
import { forgotPassword } from '../lib/services/restApi';
import { OutsideParamList } from '../stacks/types';
import { useTheme } from '../theme';
import { showErrorAlert } from '../lib/methods/helpers';
Expand Down Expand Up @@ -51,7 +51,7 @@ const ForgotPasswordView = (): React.ReactElement => {
try {
logEvent(events.FP_FORGOT_PASSWORD);
setIsFetching(true);
const result = await sendEmailCode(email);
const result = await forgotPassword(email);
if (result.success) {
navigation.pop();
showErrorAlert(I18n.t('Forgot_password_If_this_email_is_registered'), I18n.t('Alert'));
Expand Down
Loading