From 68569f2c94c454c90d7369da8b8e07780fbff3d4 Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Fri, 6 Dec 2024 12:05:11 -0700 Subject: [PATCH] Fix type errors Protect: add HMR support Revert "Protect: add HMR support" This reverts commit 06497a05bb050c86e097b36038c8742af427388d. --- projects/js-packages/scan/src/utils/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/js-packages/scan/src/utils/index.ts b/projects/js-packages/scan/src/utils/index.ts index 9e2e75bcd4d91..30a96cbd132d5 100644 --- a/projects/js-packages/scan/src/utils/index.ts +++ b/projects/js-packages/scan/src/utils/index.ts @@ -21,9 +21,9 @@ export const getThreatIcon = ( threat: Threat ) => { switch ( getThreatType( threat ) ) { case 'core': return 'wordpress-alt'; - case 'plugin': + case 'plugins': return 'plugins'; - case 'theme': + case 'themes': return 'appearance'; case 'file': return 'media-code'; @@ -36,9 +36,9 @@ export const getThreatSubtitle = ( threat: Threat ) => { switch ( getThreatType( threat ) ) { case 'core': return __( 'Vulnerable WordPress Version', 'jetpack-scan' ); - case 'plugin': + case 'plugins': return __( 'Vulnerable Plugin', 'jetpack-scan' ); - case 'theme': + case 'themes': return __( 'Vulnerable Theme', 'jetpack-scan' ); case 'file': return __( 'File Threat', 'jetpack-scan' );