Skip to content

Commit 2b4cda8

Browse files
committed
fix: rename error
1 parent 02c0cb4 commit 2b4cda8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/hw-wallet-sdk/src/hardware-error-mappings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('HARDWARE_ERROR_MAPPINGS', () => {
133133

134134
it('maps NEARBY_DEVICES_PERMISSION_DENIED correctly', () => {
135135
const mapping = errorMappings.NEARBY_DEVICES_PERMISSION_DENIED;
136-
expect(mapping.code).toBe(ErrorCode.PermissionNearbyDenied);
136+
expect(mapping.code).toBe(ErrorCode.PermissionNearbyDevicesDenied);
137137
expect(mapping.severity).toBe(Severity.Err);
138138
expect(mapping.category).toBe(Category.Configuration);
139139
});

packages/hw-wallet-sdk/src/hardware-error-mappings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const BLE_ERROR_MAPPINGS = {
133133
'Location permission is required for Bluetooth scanning on Android. Please enable it in your device settings.',
134134
},
135135
NEARBY_DEVICES_PERMISSION_DENIED: {
136-
code: ErrorCode.PermissionNearbyDenied,
136+
code: ErrorCode.PermissionNearbyDevicesDenied,
137137
message: 'Nearby devices permission denied',
138138
severity: Severity.Err,
139139
category: Category.Configuration,

packages/hw-wallet-sdk/src/hardware-errors-enums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export enum ErrorCode {
5151
// Mobile/BLE Permission Errors
5252
PermissionBluetoothDenied = 7000,
5353
PermissionLocationDenied = 7001,
54-
PermissionNearbyDenied = 7002,
54+
PermissionNearbyDevicesDenied = 7002,
5555
BluetoothDisabled = 7100,
5656
BluetoothScanFailed = 7101,
5757
BluetoothConnectionFailed = 7102,

0 commit comments

Comments
 (0)