From 2099f53599fa065498f64b49b7224fcb8567aaee Mon Sep 17 00:00:00 2001 From: Singhankit001 Date: Tue, 31 Mar 2026 00:20:53 +0530 Subject: [PATCH] fix: correct misspelling 'occured' to 'occurred' in error messages --- simplq/src/api/auth.js | 2 +- simplq/src/components/common/QrScanner/QrScanner.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simplq/src/api/auth.js b/simplq/src/api/auth.js index c70c4997..12efac51 100644 --- a/simplq/src/api/auth.js +++ b/simplq/src/api/auth.js @@ -65,7 +65,7 @@ const useMakeAuthedRequest = () => { if (error.response) { // Response has been received from the server const message = error.response.data.message; - throw new Error(message || 'Unknown error occured. We are looking into this.'); + throw new Error(message || 'Unknown error occurred. We are looking into this.'); } else { // No response from server, should be a network issue throw new Error('Are you offline? Check your internet connection and try again.'); diff --git a/simplq/src/components/common/QrScanner/QrScanner.jsx b/simplq/src/components/common/QrScanner/QrScanner.jsx index 53f869b9..1a797de5 100644 --- a/simplq/src/components/common/QrScanner/QrScanner.jsx +++ b/simplq/src/components/common/QrScanner/QrScanner.jsx @@ -30,7 +30,7 @@ export default () => { }; const handleError = (err) => { - dispatch(setErrorPopupMessage('An error occured, more details can be found in the console')); + dispatch(setErrorPopupMessage('An error occurred, more details can be found in the console')); console.error(err); };