Skip to content

Commit

Permalink
Remove logs and fix action name (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian50 authored Oct 25, 2024
1 parent ef79069 commit 2a8fe02
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions src/components/Instructions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ export const Instructions = ({
</div>
);
};
console.log({
programPreviewResult,
});
const programRows = programPreviewResult?.map((result) => {
// TODO: due to this assignment, programPreviewResult cannot be moved to the store
// Object.assign(result, { addressEl: getAddressEl(result.address), counter: result.address });
Expand Down
1 change: 0 additions & 1 deletion src/components/MemoryPreview/PageMemory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const MemoryTable = ({ data, addressStart }: { addressStart: number; data
export const PageMemory = ({ onPageChange }: { onPageChange: (page: number) => void }) => {
// TODO: get the memory for all of them and compare results
const memory = useSelector(selectMemoryForFirstWorker);
console.log("memort", memory?.meta);
return (
<div>
<div className="flex w-full">
Expand Down
2 changes: 0 additions & 2 deletions src/packages/web-worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ onmessage = async (e: MessageEvent<WorkerOnMessageParams>) => {
return;
}

console.log(e.data?.command);

let result;
let state;
// let program;
Expand Down
3 changes: 1 addition & 2 deletions src/store/workers/workersSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const changePageAllWorkers = createAsyncThunk(
);

export const refreshPageAllWorkers = createAsyncThunk(
"workers/changePageAllWorkers",
"workers/refreshPageAllWorkers",
async (_, { getState, dispatch }) => {
const state = getState() as RootState;
const pageNumber = selectMemoryForFirstWorker(state)?.page.pageNumber;
Expand Down Expand Up @@ -406,7 +406,6 @@ const workers = createSlice({
};
},
) => {
console.log("action", action);
const memory = getWorker(state, action.payload.id)?.memory;
if (!memory) {
return;
Expand Down

0 comments on commit 2a8fe02

Please sign in to comment.