Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b12ffb

Browse files
committed
Fix incorrect arguments for createAndAppend
1 parent 5553de8 commit 6b12ffb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

homework/Contributor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ class Contributor {
1414
*/
1515
render(container) {
1616
// TODO: replace the next line with your code.
17-
Util.createAndAppend('pre', container, JSON.stringify(this.contributor, null, 2));
17+
Util.createAndAppend('pre', container, { text: JSON.stringify(this.contributor, null, 2) });
1818
}
1919
}

homework/Repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Repository {
1414
*/
1515
render(container) {
1616
// TODO: replace the next line with your code.
17-
Util.createAndAppend('pre', container, JSON.stringify(this.repository, null, 2));
17+
Util.createAndAppend('pre', container, { text: JSON.stringify(this.repository, null, 2) });
1818
}
1919

2020
/**

0 commit comments

Comments
 (0)