Skip to content

Commit

Permalink
feat: add setSelectedEscrow method to EscrowGlobalStore and update it…
Browse files Browse the repository at this point in the history
…s type in escrows.slice
  • Loading branch information
JoelVR17 committed Feb 19, 2025
1 parent 2985f7a commit a14faed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/store/data/@types/escrows.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface EscrowGlobalStore {
}) => Promise<Escrow | undefined>;
setUserRolesInEscrow: (roles: string[]) => void;
setRecentEscrow: (escrow: Escrow | undefined) => void;
setSelectedEscrow: (escrow: Escrow | undefined) => void;
}
2 changes: 1 addition & 1 deletion src/core/store/data/slices/escrows.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useGlobalEscrowsSlice: StateCreator<
setEscrows: (escrows: Escrow[]) =>
set({ escrows }, false, ESCROW_ACTIONS.SET_ESCROWS),

setSelectedEscrow: (escrow: Escrow) =>
setSelectedEscrow: (escrow: Escrow | undefined) =>
set(
{ selectedEscrow: escrow },
false,
Expand Down

0 comments on commit a14faed

Please sign in to comment.