Skip to content

Commit bdff0df

Browse files
committed
Fix a mistake in the solution to ex. 21.2
1 parent 996c2bc commit bdff0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/solutions/21_2_comment_field_resets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SkillShareApp {
5656

5757
for (let talk of state.talks) {
5858
let cmp = this.talkMap[talk.title];
59-
if (cmp && cmp.talk.author == talk.author &&
59+
if (cmp && cmp.talk.presenter == talk.presenter &&
6060
cmp.talk.summary == talk.summary) {
6161
cmp.syncState(talk);
6262
} else {

0 commit comments

Comments
 (0)