From 6b12ffbb42d28ffc967c99f2dd43349b5d3c197d Mon Sep 17 00:00:00 2001 From: Jim Cramer Date: Thu, 27 Jun 2019 13:41:28 +0200 Subject: [PATCH] Fix incorrect arguments for createAndAppend --- homework/Contributor.js | 2 +- homework/Repository.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homework/Contributor.js b/homework/Contributor.js index 0bfd5a15e..c74775216 100644 --- a/homework/Contributor.js +++ b/homework/Contributor.js @@ -14,6 +14,6 @@ class Contributor { */ render(container) { // TODO: replace the next line with your code. - Util.createAndAppend('pre', container, JSON.stringify(this.contributor, null, 2)); + Util.createAndAppend('pre', container, { text: JSON.stringify(this.contributor, null, 2) }); } } diff --git a/homework/Repository.js b/homework/Repository.js index 267960a5a..86b72d71d 100644 --- a/homework/Repository.js +++ b/homework/Repository.js @@ -14,7 +14,7 @@ class Repository { */ render(container) { // TODO: replace the next line with your code. - Util.createAndAppend('pre', container, JSON.stringify(this.repository, null, 2)); + Util.createAndAppend('pre', container, { text: JSON.stringify(this.repository, null, 2) }); } /**