fix: types

This commit is contained in:
DIYgod 2024-09-05 15:49:15 +08:00
parent de22411dab
commit 3c5b224904
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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 }),

View File

@ -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.")
},