Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Fix issue when trying to playtest print an object
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Feb 24, 2022
1 parent 0a451fa commit 1f7c684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/features/Thoth/windows/PlaytestWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const Playtest = ({ tab }) => {
const { $PLAYTEST_INPUT, $PLAYTEST_PRINT } = events

const printToConsole = useCallback(
(_, text) => {
(_, _text) => {
let text = typeof _text === 'object' ? JSON.stringify(_text) : _text
const newHistory = [...history, text]
setHistory(newHistory)
},
Expand Down

0 comments on commit 1f7c684

Please sign in to comment.