diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx
index 0742d6c..021d542 100644
--- a/frontend/src/pages/DashboardPage.tsx
+++ b/frontend/src/pages/DashboardPage.tsx
@@ -376,3 +376,5 @@ const DashboardPage: React.FC = () => {
};
export default DashboardPage;
+
+.catch(err => console.error("Promise.all failed:", err));
\ No newline at end of file
diff --git a/frontend/src/pages/RegisterPage.tsx b/frontend/src/pages/RegisterPage.tsx
index 36c4427..7730823 100644
--- a/frontend/src/pages/RegisterPage.tsx
+++ b/frontend/src/pages/RegisterPage.tsx
@@ -227,7 +227,7 @@ const RegisterPage: React.FC = () => {
);
}
- if (isUsernameAvailable === true) return Username is available
;
+ if (isUsernameAvailable ) return Username is available
;
if (isUsernameAvailable === false) return Username is already taken
;
return null;
};
diff --git a/frontend/src/services/securityService.ts b/frontend/src/services/securityService.ts
index 3cd05a8..62176be 100644
--- a/frontend/src/services/securityService.ts
+++ b/frontend/src/services/securityService.ts
@@ -244,7 +244,7 @@ export const FORBIDDEN_SHORTCUTS: string[][] = [
* Check if a key combination is a forbidden browser shortcut
*/
export function isForbiddenShortcut(keys: string[]): boolean {
- const normalizedKeys = keys.map(k => k.toLowerCase()).sort();
+ const normalizedKeys = keys.map(k => k.toLowerCase()).sort((a, b) => a - b);
return FORBIDDEN_SHORTCUTS.some(forbidden => {
const normalizedForbidden = forbidden.map(k => k.toLowerCase()).sort();