Skip to content

Commit

Permalink
fix: use scale api only for bittensor balance rows
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKheops committed Dec 11, 2024
1 parent 9880d9f commit b0ae42f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/extension/src/ui/domains/Staking/Bond/useBondButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const useBondButton = ({
const address = sorted[0]?.address

const { data: hotkeys } = useGetBittensorStakeHotkeys({
chainId: token?.chain?.id,
// this calls useScaleApi which downloads metadata from chain, we only want this to be done for bittensor
chainId: token?.chain?.id === "bittensor" ? "bittensor" : null,
address,
})

Expand Down

0 comments on commit b0ae42f

Please sign in to comment.