Skip to content

Commit 8e0dc3e

Browse files
committed
Log comment status if product review reply is not approved
1 parent f656835 commit 8e0dc3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

WooCommerce/Classes/ViewRelated/Reviews/ReviewReplyViewModel.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ final class ReviewReplyViewModel: ObservableObject {
6262
self.performingNetworkRequest.send(false)
6363

6464
switch result {
65-
case .success:
65+
case .success(let status):
66+
// If the comment isn't approved, log it (to help support)
67+
if status != .approved {
68+
DDLogInfo("Reply to product review succeeded with comment status: \(status)")
69+
}
70+
6671
self.displayReplySuccessNotice()
6772
onCompletion(true)
6873
case .failure(let error):

0 commit comments

Comments
 (0)