diff --git a/phone/src/os/apps/hooks/useApps.js b/phone/src/os/apps/hooks/useApps.js index 016c6ee..3c78101 100644 --- a/phone/src/os/apps/hooks/useApps.js +++ b/phone/src/os/apps/hooks/useApps.js @@ -25,7 +25,7 @@ const appsState = atom({ backgroundColor: green[400], color: green[50], path: "/phone", - Route: () => , + Route: () => , }, { id: "CONTACTS", @@ -34,7 +34,7 @@ const appsState = atom({ backgroundColor: blue[500], color: blue[50], path: "/contacts", - Route: () => , + Route: () => , }, { id: "CALCULATOR", @@ -43,9 +43,7 @@ const appsState = atom({ backgroundColor: purple[500], color: grey[50], path: "/calculator", - Route: () => ( - - ), + Route: () => , }, { id: "SETTINGS", @@ -54,7 +52,7 @@ const appsState = atom({ backgroundColor: grey[700], color: grey[50], path: "/settings", - Route: () => , + Route: () => , }, { id: "BANK", @@ -63,7 +61,7 @@ const appsState = atom({ backgroundColor: orange[600], color: orange[50], path: "/bank", - Route: () => , + Route: () => , }, ], }, diff --git a/phone/src/os/nui-events/hooks/useNuiEvent.js b/phone/src/os/nui-events/hooks/useNuiEvent.js index 689e254..0d5469b 100644 --- a/phone/src/os/nui-events/hooks/useNuiEvent.js +++ b/phone/src/os/nui-events/hooks/useNuiEvent.js @@ -11,8 +11,8 @@ export const useNuiEvent = (app, method, handler, options = {}) => { useEffect(() => { const eventListener = (event) => { - const { data } = event; if (savedHandler.current && savedHandler.current.call) { + const { data } = event; savedHandler.current(data); } };