actions/security: fix parseVersion import
This commit is contained in:
parent
5ca4e2fef7
commit
72879da710
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
import { getLoggedInAccount } from 'soapbox/utils/auth';
|
import { getLoggedInAccount } from 'soapbox/utils/auth';
|
||||||
import { getVersion, TRUTHSOCIAL } from 'soapbox/utils/features';
|
import { parseVersion, TRUTHSOCIAL } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import api from '../api';
|
import api from '../api';
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ export function changePassword(oldPassword, newPassword, confirmation) {
|
||||||
export function resetPassword(usernameOrEmail) {
|
export function resetPassword(usernameOrEmail) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const v = getVersion(state.instance);
|
const v = parseVersion(state.instance);
|
||||||
|
|
||||||
dispatch({ type: RESET_PASSWORD_REQUEST });
|
dispatch({ type: RESET_PASSWORD_REQUEST });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue