Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
myshell-joe committed Jan 16, 2025
1 parent 26ee2a3 commit 70ec2ba
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ const INTERVAL_OPTIONS = [
{ value: IntervalUnit.day, label: 'Day' },
];

const getInitialEndTimeType = (end?: Timer['end']) =>
end?.count
? EndTimeType.repeat
: end?.date
? EndTimeType.endDate
: EndTimeType.never;
const getInitialEndTimeType = (end?: Timer['end']) => {
if (end?.count) {
return EndTimeType.repeat;
}
if (end?.date) {
return EndTimeType.endDate;
}
return EndTimeType.never;
};

interface TimerSelectorProps {
value: Timer;
Expand Down

0 comments on commit 70ec2ba

Please sign in to comment.