Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Pashin committed Nov 20, 2023
1 parent e943ef4 commit c68ece5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entities/Profile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { getProfileFormSecondName } from './model/selectors/getProfileFormSecond
export { getProfileFormUsername } from './model/selectors/getProfileFormUsername/getProfileFormUsername';
export { getProfileFormCity } from './model/selectors/getProfileFormCity/getProfileFormCity';
export { getProfileIsLoading } from './model/selectors/getProfileIsLoading/getProfileIsLoading';
export { getProfileReadOnly } from './model/selectors/getProfileReadOnly/getProfileReadonly';
export { getProfileReadOnly } from './model/selectors/getProfileReadOnly/getProfileReadOnly';
export { EditableProfile } from './ui/EditableProfile/EditableProfile';
export { EditableProfileButtons } from './ui/EditableProfileButtons/EditableProfileButtons';
export { Profile, ProfileSchema } from './model/types/profile';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { StateSchema } from 'app/providers/StoreProvider/config/StateSchema';

export const getProfileReadOnly = (state: StateSchema) => state.profile?.readOnly ?? true;
export const getProfileReadOnly = (state: StateSchema) => (!!state.profile?.readOnly);

0 comments on commit c68ece5

Please sign in to comment.