Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Dec 22, 2022
1 parent 72946ad commit 55c72f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/prevent-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const isValidCallback = (callback) => {
*/
export const parseRawDelay = (delay) => {
const parsedDelay = Math.floor(Number(delay));
return typeof parsedDelay === 'number' && nativeIsNaN(parsedDelay) ? parsedDelay : delay;
return typeof parsedDelay === 'number' && !nativeIsNaN(parsedDelay) ? parsedDelay : delay;
};

/**
Expand Down

0 comments on commit 55c72f6

Please sign in to comment.