From 213a469dd06602c9d66b904a7857ef6768310080 Mon Sep 17 00:00:00 2001 From: Sean Robertson Date: Tue, 5 Oct 2021 10:40:38 +1300 Subject: [PATCH] Correct `stringify` to `parse` --- client/homebrew/pages/printPage/printPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx index 7dd7d3597..d90cc37c0 100644 --- a/client/homebrew/pages/printPage/printPage.jsx +++ b/client/homebrew/pages/printPage/printPage.jsx @@ -31,7 +31,7 @@ const PrintPage = createClass({ componentDidMount : function() { if(this.props.query.local){ const localText = localStorage.getItem(prevProps.query.local); - const localRenderer = JSON.stringify(localStorage.getItem(METAKEY)).renderer || 'legacy'; + const localRenderer = JSON.parse(localStorage.getItem(METAKEY)).renderer || 'legacy'; this.setState((prevState, prevProps)=>({ brewText : localText, brewRenderer : localRenderer