Skip to content

Commit

Permalink
pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
liadaram1 committed May 8, 2022
1 parent b28c1f7 commit 9a17ac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const BankRequirmentCourseRowComp: React.FC<BankRequirmentCourseProps> = ({
const { userAuthToken } = useAuth();
const { mutate, isError, error } = useUpdateUserState(userAuthToken);
const {
dataStore: { courseTypeIsAll },
dataStore: { IsBankTypeOfCourseAll },
} = useStore();

useEffect(() => {
Expand All @@ -37,14 +37,14 @@ const BankRequirmentCourseRowComp: React.FC<BankRequirmentCourseProps> = ({
window.location.reload();
}
}
if (courseTypeIsAll(course.type)) {
if (IsBankTypeOfCourseAll(course.type)) {
if (course.state === "לא רלוונטי") {
setShowIgnoreIcon(IgnoreIconState.ShowV);
} else if (course.state !== "לא רלוונטי") {
setShowIgnoreIcon(IgnoreIconState.ShowIgnore);
}
}
}, [course.state, course.type, isError, error, courseTypeIsAll]);
}, [course.state, course.type, isError, error, IsBankTypeOfCourseAll]);
const {
dataStore: { updateIrrelevantCourse },
} = useStore();
Expand Down
2 changes: 1 addition & 1 deletion packages/sogrim-app/src/stores/DataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class DataStore {
return this.userSettings;
};

courseTypeIsAll = (type: string | undefined): boolean => {
IsBankTypeOfCourseAll = (type: string | undefined): boolean => {
return this.userDetails?.degree_status?.course_bank_requirements?.some(
(bankReq) => {
if (bankReq.course_bank_name === type) {
Expand Down

0 comments on commit 9a17ac2

Please sign in to comment.