diff --git a/projects/plugins/protect/changelog/fix-protect-snake-case-variables b/projects/plugins/protect/changelog/fix-protect-snake-case-variables new file mode 100644 index 0000000000000..adbfae135f46d --- /dev/null +++ b/projects/plugins/protect/changelog/fix-protect-snake-case-variables @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fixed invalid property names diff --git a/projects/plugins/protect/src/js/components/scan-page/use-status-polling.js b/projects/plugins/protect/src/js/components/scan-page/use-status-polling.js index 38239054d286f..1b9b9e101038a 100644 --- a/projects/plugins/protect/src/js/components/scan-page/use-status-polling.js +++ b/projects/plugins/protect/src/js/components/scan-page/use-status-polling.js @@ -35,12 +35,12 @@ const useStatusPolling = () => { } ) .then( newStatus => { if ( newStatus?.error ) { - throw newStatus?.errorMessage; + throw newStatus?.error_message; } if ( statusIsInProgress( newStatus?.status ) || - scanIsInitializing( newStatus?.status, newStatus?.lastChecked ) + scanIsInitializing( newStatus?.status, newStatus?.last_checked ) ) { setStatusProgress( newStatus?.current_progress ); pollTimeout = setTimeout( () => {