Rename variable to include value units

This commit is contained in:
David Granado 2022-03-02 20:25:14 -06:00 committed by infinite-persistence
parent 4d438ed62f
commit abb92726ab

View file

@ -31,7 +31,7 @@ import useInterval from 'effects/use-interval';
// const PLAY_TIMEOUT_ERROR = 'play_timeout_error'; // const PLAY_TIMEOUT_ERROR = 'play_timeout_error';
// const PLAY_TIMEOUT_LIMIT = 2000; // const PLAY_TIMEOUT_LIMIT = 2000;
const PLAY_POSITION_SAVE_INTERVAL = 15000; const PLAY_POSITION_SAVE_INTERVAL_MS = 15000;
type Props = { type Props = {
position: number, position: number,
@ -153,7 +153,7 @@ function VideoViewer(props: Props) {
if (playerRef.current && isPlaying) { if (playerRef.current && isPlaying) {
handlePosition(playerRef.current); handlePosition(playerRef.current);
} }
}, PLAY_POSITION_SAVE_INTERVAL); }, PLAY_POSITION_SAVE_INTERVAL_MS);
const updateVolumeState = React.useCallback( const updateVolumeState = React.useCallback(
debounce((volume, muted) => { debounce((volume, muted) => {