From ab355977baec21d9709f709c39bf2b1655b252ae Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Wed, 9 Feb 2022 16:41:39 -0500 Subject: [PATCH] fix(approve): Fix approval check target --- src/Action/ApproveAction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Action/ApproveAction.ts b/src/Action/ApproveAction.ts index fac9ad7..e44d854 100644 --- a/src/Action/ApproveAction.ts +++ b/src/Action/ApproveAction.ts @@ -36,7 +36,7 @@ export class ApproveAction extends Action { } // @ts-ignore - if (item.approved) { + if (targetItem.approved) { const msg = `${target === 'self' ? 'Item' : 'Comment\'s parent Submission'} is already approved`; this.logger.warn(msg); return {