Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
Protect: add HMR support

Revert "Protect: add HMR support"

This reverts commit 06497a0.
  • Loading branch information
nateweller committed Dec 9, 2024
1 parent c384d69 commit 68569f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/js-packages/scan/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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' );
Expand Down

0 comments on commit 68569f2

Please sign in to comment.