Skip to content

Commit

Permalink
refactor: refactored code as per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
srvEq committed Dec 23, 2024
1 parent cb3bc30 commit 8f926f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/unitDefinitions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const timeDefinitions: TimeDefinition[] = [

export const getDurationInSeconds = (value: string, duration: number) => {
switch (value) {
case "Second":
return duration;
case "Minute":
return duration * 60;
case "Hour":
Expand Down

0 comments on commit 8f926f9

Please sign in to comment.