Skip to content

Commit 00054b6

Browse files
committed
address pr comments
1 parent cb691e7 commit 00054b6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/main/webapp/app/pages/curation/CurationPage.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,11 @@ export const CurationPage = (props: ICurationPageProps) => {
120120
return getTooltipHistoryList(tabHistoryList);
121121
}, [tabHistoryList]);
122122

123-
/* eslint-disable no-console */
124123
useEffect(() => {
125124
async function checkLastActiveReview() {
126125
if (
127126
props.firebaseDb === undefined ||
128-
props.clearCurrentReviwer === undefined ||
127+
props.clearCurrentReviewer === undefined ||
129128
hugoSymbol === undefined ||
130129
isGermline === undefined
131130
) {
@@ -136,7 +135,7 @@ export const CurationPage = (props: ICurationPageProps) => {
136135
const lastActiveReview: number | undefined = lastActiveReviewSnapshot.val();
137136

138137
if (lastActiveReview !== undefined && Date.now() - lastActiveReview > 5 * 60 * 1000) {
139-
props.clearCurrentReviwer(hugoSymbol, isGermline);
138+
props.clearCurrentReviewer(hugoSymbol, isGermline);
140139
}
141140
}
142141

@@ -149,9 +148,9 @@ export const CurationPage = (props: ICurationPageProps) => {
149148
);
150149

151150
return () => {
152-
clearTimeout(interval);
151+
clearInterval(interval);
153152
};
154-
}, [props.firebaseDb, firebaseMetaLastActiveReviewPath, hugoSymbol, isGermline, props.clearCurrentReviwer]);
153+
}, [props.firebaseDb, firebaseMetaLastActiveReviewPath, hugoSymbol, isGermline, props.clearCurrentReviewer]);
155154

156155
if (!geneIsFound) {
157156
return <div>the gene &quot;{hugoSymbolParam}&quot; was not found</div>;
@@ -388,7 +387,7 @@ const mapStoreToProps = ({
388387
setReadOnly: curationPageStore.setReadOnly,
389388
isMutationListRendered: curationPageStore.isMutationListRendered,
390389
setIsMutationListRendered: curationPageStore.setIsMutationListRendered,
391-
clearCurrentReviwer: firebaseMetaService.clearCurrentReviewer,
390+
clearCurrentReviewer: firebaseMetaService.clearCurrentReviewer,
392391
});
393392

394393
type StoreProps = ReturnType<typeof mapStoreToProps>;

0 commit comments

Comments
 (0)