aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/NewPaste.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/NewPaste.js')
-rw-r--r--frontend/src/components/NewPaste.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js
index 419f39d..506d66c 100644
--- a/frontend/src/components/NewPaste.js
+++ b/frontend/src/components/NewPaste.js
@@ -74,7 +74,7 @@ const NewPaste = () => {
function renderPreview() {
const pasteInput = <Code
- onChange={(e) => { setContent(e.target.value) }}
+ setContentCallback={setContent}
content={content}
maxLength="100000"
id="pasteInput" />