Make useOwnAccount return an object
This commit is contained in:
@@ -11,7 +11,7 @@ const messages = defineMessages({
|
||||
});
|
||||
|
||||
const MessagesSettings = () => {
|
||||
const account = useOwnAccount();
|
||||
const { account } = useOwnAccount();
|
||||
const intl = useIntl();
|
||||
const updateCredentials = useUpdateCredentials();
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ const Settings = () => {
|
||||
|
||||
const mfa = useAppSelector((state) => state.security.get('mfa'));
|
||||
const features = useFeatures();
|
||||
const account = useOwnAccount();
|
||||
const { account } = useOwnAccount();
|
||||
|
||||
const navigateToChangeEmail = () => history.push('/settings/email');
|
||||
const navigateToChangePassword = () => history.push('/settings/password');
|
||||
|
||||
Reference in New Issue
Block a user