Skip to content

Commit

Permalink
feat: use create instead of createState
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Feb 1, 2024
1 parent a48d3f2 commit a7fb3ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/background-script/state.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import merge from "lodash.merge";
import pick from "lodash.pick";
import browser from "webextension-polyfill";
import createState from "zustand";
import { create } from "zustand";
import { decryptData } from "~/common/lib/crypto";
import { DEFAULT_SETTINGS } from "~/common/settings";
import { isManifestV3 } from "~/common/utils/mv3";
Expand Down Expand Up @@ -85,7 +85,7 @@ const getFreshState = () => ({
mv2Password: null,
});

const state = createState<State>((set, get) => ({
const state = create<State>((set, get) => ({
...getFreshState(),
password: async (password) => {
if (isManifestV3) {
Expand Down

0 comments on commit a7fb3ce

Please sign in to comment.