Skip to content

Commit

Permalink
fix: small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rozenmd committed Jan 20, 2025
1 parent ba71250 commit 1c53567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ const statsReducer = (state: any, action: any) => {
if (action.update) state.update += action.update;
if (action.delete) state.delete += action.delete;
if (action.insert) state.insert += action.insert;
if (action.log) state.log.push({ ...action.log });
// we want new logs to be at the top of the list
if (action.log) state.log.unshift({ ...action.log });

return state;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/dash.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { useStats } from "~/components/StatsContext";
import { SQLRequestEvent } from "worker/lib/tools";
import type { SQLRequestEvent } from "worker/lib/tools";

interface Status {
cf:
Expand Down

0 comments on commit 1c53567

Please sign in to comment.