Skip to content

Commit

Permalink
fix: unbond buttons read hotkey from meta
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKheops committed Dec 12, 2024
1 parent 194cc66 commit f431eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const LockedExtra: FC<{
tokenId: TokenId
address?: string // this is only set when browsing all accounts
isLoading: boolean
rowMeta: { poolId?: number; unbonding?: boolean }
rowMeta: { poolId?: number; unbonding?: boolean; hotkey?: string }
}> = ({ tokenId, address, rowMeta, isLoading }) => {
const { t } = useTranslation()
const { data } = useNomPoolStakingStatus(tokenId)
Expand Down Expand Up @@ -351,7 +351,7 @@ const LockedExtra: FC<{
tokenId={tokenId}
address={rowAddress}
variant="large"
poolId={rowMeta.poolId}
poolId={rowMeta.poolId ?? rowMeta.hotkey}
/>
) : null}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const LockedExtra: FC<{
tokenId: TokenId
address?: string // this is only set when browsing all accounts
isLoading: boolean
rowMeta: { poolId?: number; unbonding?: boolean }
rowMeta: { poolId?: number; unbonding?: boolean; hotkey?: string }
}> = ({ tokenId, address, rowMeta, isLoading }) => {
const { t } = useTranslation()
const { data } = useNomPoolStakingStatus(tokenId)
Expand Down Expand Up @@ -313,7 +313,7 @@ const LockedExtra: FC<{
tokenId={tokenId}
address={rowAddress}
variant="small"
poolId={rowMeta.poolId}
poolId={rowMeta.poolId ?? rowMeta.hotkey}
/>
) : null}
</>
Expand Down

0 comments on commit f431eaa

Please sign in to comment.