@@ -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 "{ hugoSymbolParam } " 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
394393type StoreProps = ReturnType < typeof mapStoreToProps > ;
0 commit comments