Skip to content

Commit

Permalink
v2.0.41+ext
Browse files Browse the repository at this point in the history
  • Loading branch information
heathsnee committed May 25, 2024
1 parent bfcb867 commit aeea4e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "z3us-extension",
"version": "2.0.40",
"version": "2.0.41",
"type": "module",
"scripts": {
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/hooks/dapp/use-pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const collectUnitResourceAddresses = (pools: StateEntityDetailsResponseItem[]) =

export const usePools = (accounts: StateEntityDetailsResponseItem[], at: Date) => {
const addresses = useMemo(collectAccountPoolAddresses(accounts), [accounts])
const { data: pools } = useEntitiesDetails(addresses, undefined, undefined, at)
const { data: pools = [] } = useEntitiesDetails(addresses, undefined, undefined, at)

const resourceAddresses = useMemo(collectUnitResourceAddresses(pools), [pools])
const { data: units } = useEntitiesDetails(resourceAddresses, undefined, undefined, at)
const { data: units = [] } = useEntitiesDetails(resourceAddresses, undefined, undefined, at)

const queryFn = () => {
const unitsSupply = units.reduce((m, unit) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/hooks/dapp/use-validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const collectStakeResourceAddresses = (validators: StateEntityDetailsResponseIte

export const useValidators = (accounts: StateEntityDetailsResponseItem[], at: Date) => {
const addresses = useMemo(collectAccountValidatorAddresses(accounts), [accounts])
const { data: validators } = useEntitiesDetails(addresses, undefined, undefined, at)
const { data: validators = [] } = useEntitiesDetails(addresses, undefined, undefined, at)

const stakeResourceAddresses = useMemo(collectStakeResourceAddresses(validators), [validators])
const { data: units } = useEntitiesDetails(stakeResourceAddresses, undefined, undefined, at)
const { data: units = [] } = useEntitiesDetails(stakeResourceAddresses, undefined, undefined, at)

const queryFn = () => {
const unitsSupply = units.reduce((m, unit) => {
Expand Down

0 comments on commit aeea4e8

Please sign in to comment.