From 689a399832d08686f234426cd48458ec55f156ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adriana=20Ceri=C4=87?= <62163307+AdrianaCeric@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:28:36 -0400 Subject: [PATCH] fix(EditableCell): fix linting errors --- lib/editor/components/timetable/EditableCell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/editor/components/timetable/EditableCell.js b/lib/editor/components/timetable/EditableCell.js index 4be23f8aa..b9e0ea2c3 100644 --- a/lib/editor/components/timetable/EditableCell.js +++ b/lib/editor/components/timetable/EditableCell.js @@ -1,6 +1,6 @@ // @flow -// $FlowIgnore - TODO: need to update Flow to like the useEffect or useState hooks +// $FlowFixMe import React, {useEffect, useState} from 'react' import moment from 'moment' @@ -231,7 +231,7 @@ function EditableCell (props: Props) { cancel() } else { const duration = moment.duration(data) - // $FlowExpectedError - Flow throws "mixed" type linting error, but this should be okay + // $FlowFixMe - Flow type error const value = duration.isValid() ? duration.valueOf() / 1000 : false if (value !== false) {