Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bugfix/react-native-h…
Browse files Browse the repository at this point in the history
…elium
  • Loading branch information
ChewingGlass committed Jul 17, 2024
2 parents 16cef54 + eb38c86 commit c3a9d28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hooks/useOnboardingBalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export function useOnboardingBalnces(hotspotAddress: string | undefined): {
const mobileSetting = useMemo(
() =>
(
mobileREC?.settings.mobileConfigV1 || mobileREC?.settings.mobileConfigV2
mobileREC?.settings?.mobileConfigV1 ||
mobileREC?.settings?.mobileConfigV2
)?.feesByDevice.find(
(fee: any) => Object.keys(fee.deviceType)[0] === deviceType,
),
Expand All @@ -119,8 +120,8 @@ export function useOnboardingBalnces(hotspotAddress: string | undefined): {
const iotAssertFee = useMemo(
() =>
!iotInfo || iotInfo?.isFullHotspot
? iotREC?.settings.iotConfig.fullLocationStakingFee
: iotREC?.settings.iotConfig.dataonlyLocationStakingFee,
? iotREC?.settings?.iotConfig?.fullLocationStakingFee
: iotREC?.settings?.iotConfig?.dataonlyLocationStakingFee,
[iotInfo, iotREC],
)
const loadingOnboardingDcRequirements = loadingMobileREC || loadingSubDao
Expand Down

0 comments on commit c3a9d28

Please sign in to comment.