Skip to content

Commit

Permalink
feat: fix dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
createhb21 committed Aug 5, 2024
1 parent d6c7f24 commit c502b7b
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 @@ -12,7 +12,7 @@ export const usePushServiceInitialize = ({ uid }: { uid?: string }) => {
useEffect(() => {
if (isWebView()) {
const deviceInfoMessageListener = ({ data }: MessageEvent) => {
const isAccurateData = typeof data && data === "string" && data.includes("deviceInfo");
const isAccurateData = data && typeof data === "string" && data.includes("deviceInfo");
const deviceInfos: DeviceInfo = isAccurateData ? JSON.parse(data) : {};
const shouldRegisterListener = !isNil(uid) && !isEmpty(deviceInfos);

Expand Down

0 comments on commit c502b7b

Please sign in to comment.