Skip to content

Commit

Permalink
Fix possibly undefined rewardable entity configs (#778)
Browse files Browse the repository at this point in the history
* Fix possibly undefined rewardable entity configs

* Bump versoin
  • Loading branch information
ChewingGlass authored Jul 17, 2024
1 parent e8d19c7 commit eb38c86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions ios/HeliumWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.8.2;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down Expand Up @@ -1073,7 +1073,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.8.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -1241,7 +1241,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.8.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
Expand Down Expand Up @@ -1286,7 +1286,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.8.2;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = com.helium.wallet.app.OneSignalNotificationServiceExtension;
Expand Down Expand Up @@ -1334,7 +1334,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.8.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
Expand Down Expand Up @@ -1383,7 +1383,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.8.2;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = com.helium.wallet.app.HeliumWalletWidget;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "helium-wallet",
"version": "2.8.1",
"version": "2.8.2",
"private": true,
"scripts": {
"postinstall": "patch-package && ./node_modules/.bin/rn-nodeify --hack --install && npx jetify",
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/useOnboardingBalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function useOnboardingBalnces(hotspotAddress: string | undefined): {
const mobileSetting = useMemo(
() =>
(
mobileREC?.settings.mobileConfigV1 || mobileREC?.settings.mobileConfigV2
mobileREC?.settings?.mobileConfigV1 || mobileREC?.settings?.mobileConfigV2

Check failure on line 109 in src/hooks/useOnboardingBalances.ts

View workflow job for this annotation

GitHub Actions / build

Insert `⏎·······`
)?.feesByDevice.find(
(fee: any) => Object.keys(fee.deviceType)[0] === deviceType,
),
Expand All @@ -119,8 +119,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 eb38c86

Please sign in to comment.