Skip to content

Commit

Permalink
feat: add null to payload type
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarhenrq committed Oct 9, 2023
1 parent 3a5722c commit 64ceaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/user/actions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type Action = {
type: string;
payload: User;
payload: User | null;
};

export const setUser = (user: User) => {
Expand Down

0 comments on commit 64ceaf2

Please sign in to comment.