Skip to content

Commit

Permalink
drawTimer: fix type of parameter
Browse files Browse the repository at this point in the history
The elapsed is passed to something
that expects a number, so use that
type for the parameter itself.
  • Loading branch information
pjonsson committed Jun 6, 2024
1 parent 6abc5ac commit fed1c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ReactViews/Generic/Timer/drawTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function createTimer(
* @param {string} containerId The id of the element to insert the timer into.
* @param {string} elapsedTimeClass A class for styling the animation that fills the timer as it runs.
* @param {string} backgroundClass A class for styling the timer's background circle.
* @param {string} [elapsed=0] How much time (in seconds) has already passed.
* @param {number} [elapsed=0] How much time (in seconds) has already passed.
*/
export function startTimer(
radius,
Expand Down

0 comments on commit fed1c20

Please sign in to comment.