diff --git a/app/components/UI/LedgerModals/LedgerConfirmationModal.tsx b/app/components/UI/LedgerModals/LedgerConfirmationModal.tsx index 65cae14f23a..c5eef8eedaf 100644 --- a/app/components/UI/LedgerModals/LedgerConfirmationModal.tsx +++ b/app/components/UI/LedgerModals/LedgerConfirmationModal.tsx @@ -187,10 +187,10 @@ const LedgerConfirmationModal = ({ if (bluetoothPermissionError && !permissionErrorShown) { switch (bluetoothPermissionError) { - case BluetoothPermissionErrors.LocationAccessBlocked: + case BluetoothPermissionErrors.NearbyDevicesAccessBlocked: setErrorDetails({ - title: strings('ledger.location_access_blocked'), - subtitle: strings('ledger.location_access_blocked_error'), + title: strings('ledger.nearbyDevices_access_blocked'), + subtitle: strings('ledger.nearbyDevices_access_blocked_message'), }); break; case BluetoothPermissionErrors.BluetoothAccessBlocked: diff --git a/app/components/Views/LedgerConnect/Scan.tsx b/app/components/Views/LedgerConnect/Scan.tsx index 9f36f73651f..ae333193fa1 100644 --- a/app/components/Views/LedgerConnect/Scan.tsx +++ b/app/components/Views/LedgerConnect/Scan.tsx @@ -107,10 +107,12 @@ const Scan = ({ }, }); break; - case BluetoothPermissionErrors.LocationAccessBlocked: + case BluetoothPermissionErrors.NearbyDevicesAccessBlocked: onScanningErrorStateChanged({ - errorTitle: strings('ledger.location_access_blocked'), - errorSubtitle: strings('ledger.location_access_blocked_message'), + errorTitle: strings('ledger.nearbyDevices_access_blocked'), + errorSubtitle: strings( + 'ledger.nearbyDevices_access_blocked_message', + ), primaryButtonConfig: { title: strings('ledger.view_settings'), onPress: async () => { diff --git a/app/components/hooks/useBluetoothPermissions.ts b/app/components/hooks/useBluetoothPermissions.ts index d25fcd93e5b..d5197756530 100644 --- a/app/components/hooks/useBluetoothPermissions.ts +++ b/app/components/hooks/useBluetoothPermissions.ts @@ -7,6 +7,7 @@ import Device from '../../util/device'; export enum BluetoothPermissionErrors { BluetoothAccessBlocked = 'BluetoothAccessBlocked', LocationAccessBlocked = 'LocationAccessBlocked', + NearbyDevicesAccessBlocked = 'NearbyDevicesAccessBlocked', } const useBluetoothPermissions = () => { @@ -64,7 +65,7 @@ const useBluetoothPermissions = () => { setBluetoothPermissionError(undefined); } else { setBluetoothPermissionError( - BluetoothPermissionErrors.LocationAccessBlocked, + BluetoothPermissionErrors.NearbyDevicesAccessBlocked, ); } } diff --git a/locales/languages/en.json b/locales/languages/en.json index 39d4c0091ce..10f2c30e71e 100644 --- a/locales/languages/en.json +++ b/locales/languages/en.json @@ -2699,8 +2699,8 @@ "bluetooth_off_message": "Please turn on Bluetooth for your device", "bluetooth_access_blocked": "Ledger needs Bluetooth access to pair with your mobile device.", "bluetooth_access_blocked_message": "If you want to pair your Ledger device using Bluetooth, enable it in Settings & try again.", - "location_access_blocked": "Ledger needs location access to pair with your mobile device.", - "location_access_blocked_message": "If you want to pair your Ledger device using Bluetooth, you’ll need to enable location access in Settings & try again.", + "nearbyDevices_access_blocked": "MetaMask needs permission to nearby devices to pair with your Ledger.", + "nearbyDevices_access_blocked_message": "If you want to pair your Ledger device using Bluetooth, you’ll need to enable nearby devices access in Settings & try again.", "bluetooth_scanning_error": "Error while scanning the device", "bluetooth_scanning_error_message": "Please make sure your device is unlocked and the Ethereum app is running", "bluetooth_connection_failed": "Bluetooth connection failed",