Skip to content

Commit

Permalink
chore:fix store
Browse files Browse the repository at this point in the history
  • Loading branch information
HatemMn committed Nov 22, 2024
1 parent 784118e commit 2504939
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/store/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ export const useFindexStore = create<FindexState>()((set) => ({
.filter((employee) => employee.uuid <= 3)
.map((employee) => ({
uuid: employee.uuid,
first: employee.first || "",
last: employee.last || "",
email: employee.email || "",
country: employee.country || "",
salary: employee.salary || "",
first: employee.first ?? "",
last: employee.last ?? "",
email: employee.email ?? "",
country: employee.country ?? "",
salary: employee.salary ?? "",
})),
findexService: false,
encryptedDatabase: undefined,
Expand All @@ -148,8 +148,7 @@ export const useFindexStore = create<FindexState>()((set) => ({
},
setFindexInstance: (findexInstance?: Findex) =>
set((state) => {
state.setDecryptedSearchResults(); // reset next steps
state.setIndexedEntries();
state.setIndexedEntries(); // reset next steps
return { findexInstance };
}),
setIndexedEntries: (indexedEntries?: IndexedEntry[]) =>
Expand Down Expand Up @@ -296,8 +295,8 @@ type SummarizeApiResponse = {
summary: string | undefined;
};
interface CseState {
cseConfig: boolean,
dkeConfig: boolean,
cseConfig: boolean;
dkeConfig: boolean;
integrity: boolean;
summarizeApiResponse: SummarizeApiResponse | undefined;
setCseConfig: (cseConfig?: boolean) => void;
Expand Down

0 comments on commit 2504939

Please sign in to comment.