Skip to content

Commit

Permalink
feat: fix side effect dependency on usePushServiceInitialize
Browse files Browse the repository at this point in the history
  • Loading branch information
createhb21 committed Aug 5, 2024
1 parent de58b81 commit d6c7f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/fcm/mutaion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const usePushServiceInitialize = ({ uid }: { uid?: string }) => {
} else {
subscribePushServiceOnPWA();
}
}, []);
}, [uid]);
};

const subscribePushServiceOnAPP = async (data: DeviceInfo, uid: string) => {
Expand Down

0 comments on commit d6c7f24

Please sign in to comment.