Skip to content

Commit 0c0c1d0

Browse files
committed
Use enum value instead of hard coded value.
1 parent 99e1a77 commit 0c0c1d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPress/Classes/ViewRelated/Reader/Detail/ReaderDetailViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView {
383383
}
384384

385385
// Moderated comments could still be cached, so filter out non-approved comments.
386-
let approvedComments = comments.filter({ $0.status == "approve"})
386+
let approvedStatus = Comment.descriptionFor(.approved)
387+
let approvedComments = comments.filter({ $0.status == approvedStatus})
387388

388389
// Set the delegate here so the table isn't shown until fetching is complete.
389390
commentsTableView.delegate = commentsTableViewDelegate

0 commit comments

Comments
 (0)