Skip to content

Commit

Permalink
Remove debugging console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
OMikkel committed Nov 25, 2023
1 parent 7165334 commit ce75f11
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion fivem/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ local function displayNUI(display)
data = display
})
SetNuiFocus(display, display)
print("NUI: ", display)
end


Expand Down
1 change: 0 additions & 1 deletion ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function Home() {
const searchParams = useSearchParams();
const display = useSelector((state: RootState) => state.app.display);
const [playerCount, setPlayerCount] = useState<number>(0);
console.log(display, searchParams.get("preview"));

if (!display && !searchParams.get("preview")) return null;

Expand Down
2 changes: 0 additions & 2 deletions ui/src/components/eventListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ export default function EventListener({ children }: EventListenerProps) {

const onMessage = useCallback(
(event: MessageEvent) => {
console.log(event);
const { type, data }: { type: string; data: any } = event.data;
if (type && type != "ACTION" && type != "PARTIAL_STATE") {
console.log("Received message from NUI:", type, data);
dispatch({ type, payload: data });
}
},
Expand Down
1 change: 0 additions & 1 deletion ui/src/state/reducers/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const appSlice = createSlice({
initialState,
reducers: {
setDisplay: (state, action: PayloadAction<boolean>) => {
console.log("setDisplay", action.payload);
state.display = action.payload;
},
},
Expand Down

0 comments on commit ce75f11

Please sign in to comment.