Skip to content

Commit

Permalink
Update modules/react-native-wallet/src/ApplePushProvisioning.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Skałka <[email protected]>
  • Loading branch information
brunovjk and Skalakid authored Oct 21, 2024
1 parent bf80495 commit 4e396f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/react-native-wallet/src/ApplePushProvisioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type ApplePushProvisioningType = NativeModule & {
};

const ApplePushProvisioning = (NativeModules.ApplePushProvisioning as ApplePushProvisioningType) ?? null;
if (!ApplePushProvisioning) {
if (Platform.OS === 'ios' && !ApplePushProvisioning) {

Check failure on line 31 in modules/react-native-wallet/src/ApplePushProvisioning.ts

View workflow job for this annotation

GitHub Actions / ESLint check

Unsafe member access .OS on an `error` typed value

Check failure on line 31 in modules/react-native-wallet/src/ApplePushProvisioning.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unsafe member access .OS on an `error` typed value
throw new Error('ApplePushProvisioning module is not linked. Please ensure it is properly installed and linked.');
}

Expand Down

0 comments on commit 4e396f9

Please sign in to comment.