Skip to content

Commit

Permalink
Revert LearnDataSource. Change title in where-now.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wayni208 committed May 5, 2019
1 parent 2c165e4 commit 39d5bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Unwrap/Activities/Learn/LearnDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ class LearnDataSource: NSObject, UITableViewDataSource, UITableViewDelegate {
cell.accessoryType = .disclosureIndicator

let chapter = Unwrap.chapters[indexPath.section]
var section = chapter.sections[indexPath.row]
let section = chapter.sections[indexPath.row]
cell.textLabel?.text = section

// Decide how to show the checkmark for this section.
if section == "Where now?" {
section = "Final test"
}

let score = User.current.ratingForSection(section.bundleName)

Expand Down
4 changes: 2 additions & 2 deletions Unwrap/Content/SixtySeconds/where-now.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "Final test",
"title": "Where now?",
"postscript": "You can go back and re-read any of these chapters whenever you want \u2013 keep your Swift skills fresh!",
"reviewType": "multipleSelection",
"question": "Which of these statements are true?",
Expand Down Expand Up @@ -57,4 +57,4 @@
"reason": "Implicitly unwrapped optionals such as <code>String!<\/code> might be nil."
}
]
}
}

0 comments on commit 39d5bbe

Please sign in to comment.