From 5de91cb4ee1328929dd2a0f2d776493132ba899f Mon Sep 17 00:00:00 2001 From: Marton Langa Date: Thu, 28 Nov 2019 23:20:54 +0100 Subject: [PATCH] Fix variable name (#3156) --- docs/walkthroughs/06-saving-to-a-database.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/06-saving-to-a-database.md b/docs/walkthroughs/06-saving-to-a-database.md index f4544f143..67b762016 100644 --- a/docs/walkthroughs/06-saving-to-a-database.md +++ b/docs/walkthroughs/06-saving-to-a-database.md @@ -146,7 +146,7 @@ const App = () => { defaultValue={defaultValue} onChange={value => { // Serialize the value and save the string value to Local Storage. - const content = serialize(newValue) + const content = serialize(value) localStorage.setItem('content', content) }} >