Skip to content

Commit

Permalink
analitics
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed May 21, 2024
1 parent 65506e5 commit f152cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/useAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function useAnalytics() {
const analyticsTokenBank = group?.getFirstBankByMint(
new PublicKey('EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm'),
)
const analyticsTokenValue =
const val =
mangoAccount && analyticsTokenBank
? mangoAccount.getTokenBalanceUi(analyticsTokenBank) *
analyticsTokenBank.uiPrice
Expand All @@ -24,7 +24,7 @@ export default function useAnalytics() {
tag &&
data &&
mangoAccountAddress &&
analyticsTokenValue >= 3
val >= 10000
) {
const enchantedData = JSON.stringify({
mangoAccountAddress: mangoAccountAddress,
Expand All @@ -45,7 +45,7 @@ export default function useAnalytics() {
})
}
},
[analyticsTokenValue, mangoAccountAddress, publicKey],
[val, mangoAccountAddress, publicKey],
)

return {
Expand Down

0 comments on commit f152cc1

Please sign in to comment.