From 33777c288d103185a93c8ec255638763c7f7575d Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Mon, 16 Jan 2023 13:10:08 -0700 Subject: [PATCH 1/2] Fix property name case style --- .../protect/src/js/components/scan-page/use-status-polling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 38239054d286..1b9b9e101038 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( () => { From 19f1fa06080cda2d7a648e2793c9778e6e29053c Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Mon, 16 Jan 2023 13:10:59 -0700 Subject: [PATCH 2/2] changelog --- .../protect/changelog/fix-protect-snake-case-variables | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/plugins/protect/changelog/fix-protect-snake-case-variables 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 000000000000..adbfae135f46 --- /dev/null +++ b/projects/plugins/protect/changelog/fix-protect-snake-case-variables @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fixed invalid property names