Skip to content

Commit

Permalink
fix(EditableCell): fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianaCeric committed Oct 18, 2023
1 parent 4bb61f9 commit 689a399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/editor/components/timetable/EditableCell.js
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 689a399

Please sign in to comment.