From eee30d8a68d32b976c6ae8b17471e13f98b858e3 Mon Sep 17 00:00:00 2001 From: Haishi2016 Date: Tue, 15 Oct 2019 19:46:06 -0700 Subject: [PATCH] update code to match with doc instruction (#60) --- .../react-calculator/client/src/component/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3.distributed-calculator/react-calculator/client/src/component/App.js b/3.distributed-calculator/react-calculator/client/src/component/App.js index 7b54ceee..400ec045 100644 --- a/3.distributed-calculator/react-calculator/client/src/component/App.js +++ b/3.distributed-calculator/react-calculator/client/src/component/App.js @@ -15,7 +15,7 @@ export default class App extends React.Component { const savedState = await this.getState(); if (savedState) { console.log("Rehydrating State:"); - console.log(savedState); + console.log(JSON.stringify(savedState)); this.setState(savedState); } } @@ -28,7 +28,7 @@ export default class App extends React.Component { persistState = (value) => { console.log(`Persisting State:`); - console.log(value); + console.log(JSON.stringify(value)); const state = [{ key: "calculatorState",