diff options
Diffstat (limited to 'frontend/src/components/NewPaste.js')
| -rw-r--r-- | frontend/src/components/NewPaste.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js index fa2c997..3bdd41a 100644 --- a/frontend/src/components/NewPaste.js +++ b/frontend/src/components/NewPaste.js @@ -21,11 +21,11 @@ class NewPaste extends React.Component { this.handleSubmit = this.handleSubmit.bind(this); } - newErr(msg) { + newErr(msg, duration = 5000) { this.setState({ error: msg }) setTimeout(() => { this.setState({ error: '' }) - }, 3000); + }, duration); } renderRedirect = () => { |