Skip to content

Commit

Permalink
Merge branch 'epic-base' of https://github.com/dappforce/grillchat in…
Browse files Browse the repository at this point in the history
…to deploy/epic
  • Loading branch information
teodorus-nathaniel committed Jul 5, 2024
2 parents d00a3e2 + 817219c commit 2106980
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/usePostMemeThreshold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ export default function usePostMemeThreshold(chatId: string) {
const { data: tokenomics, isLoading } =
getTokenomicsMetadataQuery.useQuery(null)

const threshold = tokenomics?.thresholdsAndRules.find(
const threshold = tokenomics?.thresholdsAndRules?.find(
(t) => t.contextPostId === chatId
)
const thresholdForAllChats = tokenomics?.thresholdsAndRules.find(
const thresholdForAllChats = tokenomics?.thresholdsAndRules?.find(
(t) => t.contextPostId === '*'
)

Expand Down
1 change: 1 addition & 0 deletions src/services/datahub/content-staking/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ export const GET_TOKENOMICS_METADATA = gql`
}
}
`
// NOTE: need to be careful when changing the structure of these cached data, because it can cause the app to crash if you access unavailable data
const getTokenomicsMetadataCache = new LocalStorage(
() => 'tokenomics-metadata-cache'
)
Expand Down
1 change: 1 addition & 0 deletions src/services/datahub/identity/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { LocalStorage } from '@/utils/storage'
import { parseJSONData } from '@/utils/strings'
import { getLinkedIdentity } from './fetcher'

// NOTE: need to be careful when changing the structure of these cached data, because it can cause the app to crash if you access unavailable data
export const getMyLinkedIdentityCache = new LocalStorage(
() => 'my-linked-identity-cache'
)
Expand Down
1 change: 1 addition & 0 deletions src/services/datahub/leaderboard/points-balance/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const GET_BALANCE = gql`
}
}
`
// NOTE: need to be careful when changing the structure of these cached data, because it can cause the app to crash if you access unavailable data
export const getMyBalanceCache = new LocalStorage(() => 'my-balance-cache')
async function getBalance(address: string): Promise<number> {
const res = await datahubQueryRequest<
Expand Down

0 comments on commit 2106980

Please sign in to comment.