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 c68ece5 commit 8fb7b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DeepPartial } from '@reduxjs/toolkit';
import { StateSchema } from 'app/providers/StoreProvider';
import { getProfileReadOnly } from './getProfileReadonly';
import { getProfileReadOnly } from './getProfileReadOnly';

describe('getProfileReadonly.test', () => {
test('should return value', () => {
Expand Down
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);
export const getProfileReadOnly = (state: StateSchema) => state.profile?.readOnly ?? true;

0 comments on commit 8fb7b39

Please sign in to comment.