Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Dec 30, 2023
1 parent 8414530 commit d535ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/form-tools/forms-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class FormsReact {
* @param url - URL to redirect to
* @param timeoutSec - timeout in seconds
*/
public redirectTimeoutScends(url: string, timeoutSec: number) {
public redirectTimeoutSeconds(url: string, timeoutSec = 0) {
this.scriptToRun += `
setTimeout(function() {
window.location.href = new URL("${this._escapeParentheses(url)}", window.location.href).href;
Expand Down

0 comments on commit d535ae9

Please sign in to comment.