From 3c5b224904e8db1c8ba6b78cfb87d09cd81de98c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 5 Sep 2024 15:49:15 +0800 Subject: [PATCH] fix: types --- src/renderer/src/modules/wallet/hooks.ts | 2 +- src/renderer/src/queries/wallet.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/modules/wallet/hooks.ts b/src/renderer/src/modules/wallet/hooks.ts index 01ea7d8cda..1e6f4080ca 100644 --- a/src/renderer/src/modules/wallet/hooks.ts +++ b/src/renderer/src/modules/wallet/hooks.ts @@ -21,7 +21,7 @@ export const useTipModal = ({ toast.error("Invalid feed id or entry id") return } - window.posthog?.capture("tip_modal_opened", { feedId }) + window.posthog?.capture("tip_modal_opened", { entryId }) present({ title: "Tip Power", content: () => createElement(TipModalContent, { userId, feedId, entryId }), diff --git a/src/renderer/src/queries/wallet.tsx b/src/renderer/src/queries/wallet.tsx index d43f0af2e6..8d2ca0ae42 100644 --- a/src/renderer/src/queries/wallet.tsx +++ b/src/renderer/src/queries/wallet.tsx @@ -119,7 +119,7 @@ export const useWalletTipMutation = () => wallet.transactions.get().invalidate() window.posthog?.capture("tip_sent", { amount: variables.amount, - feedId: variables.feedId, + entryId: variables.entryId, }) toast("🎉 Tipped.") },