Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Aug 9, 2023
1 parent 626e58e commit 13b05b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/hooks/useIotInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IdlAccounts } from '@coral-xyz/anchor'
import { UseAccountState } from '@helium/account-fetch-cache-hooks'
import {
iotInfoKey,
rewardableEntityConfigKey,
Expand All @@ -15,9 +14,7 @@ export type IotHotspotInfoV0 =
pubKey: PublicKey
}

export const useIotInfo = (
entityKey: string | undefined,
): UseAccountState<IotHotspotInfoV0> | undefined => {
export const useIotInfo = (entityKey: string | undefined) => {
const [iotConfigKey] = rewardableEntityConfigKey(IOT_SUB_DAO_KEY, 'IOT')
const [iotInfo] = iotInfoKey(iotConfigKey, entityKey || '')

Expand Down
5 changes: 1 addition & 4 deletions src/hooks/useMobileInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IdlAccounts } from '@coral-xyz/anchor'
import { UseAccountState } from '@helium/account-fetch-cache-hooks'
import {
mobileInfoKey,
rewardableEntityConfigKey,
Expand All @@ -15,9 +14,7 @@ export type MobileHotspotInfoV0 =
pubKey: PublicKey
}

export const useMobileInfo = (
entityKey: string | undefined,
): UseAccountState<MobileHotspotInfoV0> | undefined => {
export const useMobileInfo = (entityKey: string | undefined) => {
const [mobileConfigKey] = rewardableEntityConfigKey(
MOBILE_SUB_DAO_KEY,
'MOBILE',
Expand Down

0 comments on commit 13b05b0

Please sign in to comment.