Skip to content

Commit

Permalink
one last cheeky hack
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Jul 21, 2024
1 parent 2af7371 commit b5ad3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/middleware/persistState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Middleware } from "@reduxjs/toolkit";
import type { Middleware, Action } from "@reduxjs/toolkit";

import type { RootState } from "../store";

Expand All @@ -7,7 +7,7 @@ export const LS_KEY = "csv-airdrop-v1";
export const persistBookmarkState: Middleware<{}, RootState> = (store) => (next) => (action) => {
const result = next(action);

const sliceType = action.type.split("/")[0];
const sliceType = (action as Action).type.split("/")[0];
if (sliceType === "bookmarks") {
const state = store.getState();
const sliceState = state["bookmarks"];
Expand Down

0 comments on commit b5ad3e5

Please sign in to comment.