From 7fc705bb651bab7e9629e55fd54c8f577bc0ac85 Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Wed, 7 Aug 2024 14:53:42 -0600 Subject: [PATCH] Remove optimistic scan status check from scanError selector --- projects/plugins/protect/src/js/state/selectors.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/plugins/protect/src/js/state/selectors.js b/projects/plugins/protect/src/js/state/selectors.js index 95175ee46d653..6382c120931aa 100644 --- a/projects/plugins/protect/src/js/state/selectors.js +++ b/projects/plugins/protect/src/js/state/selectors.js @@ -41,14 +41,9 @@ const scanInProgress = state => { * @returns {ScanError|null} The error object or null. */ const scanError = state => { - const { status, error, errorCode, errorMessage } = selectors.getStatus( state ); + const { error, errorCode, errorMessage } = selectors.getStatus( state ); const unavailable = selectors.getScanIsUnavailable( state ); - // When "optimistically" scanning, ignore any errors. - if ( SCAN_STATUS_OPTIMISTICALLY_SCANNING === status ) { - return null; - } - // If the scan results include an error, return it. if ( error ) { return { code: errorCode, message: errorMessage };