diff --git a/src/components/notification-i18n.en.json b/src/components/notification-i18n.en.json index 277d643a..7555b749 100644 --- a/src/components/notification-i18n.en.json +++ b/src/components/notification-i18n.en.json @@ -14,7 +14,6 @@ } }, "flashFirmware": { - "connectionFailed": "Could not connect to the hub. Restart the hub and try again.", "timedOut": "The hub took too long to respond. Restart the hub and try again.", "bleError": "There was a problem with Bluetooth.", "disconnected": "The hub was disconnected before flashing was completed. Restart the hub and try again.", diff --git a/src/components/notification-i18n.ts b/src/components/notification-i18n.ts index c27294a6..c519a1f6 100644 --- a/src/components/notification-i18n.ts +++ b/src/components/notification-i18n.ts @@ -10,7 +10,6 @@ export enum MessageId { BleGattPermission = 'ble.gattPermission', BleGattServiceNotFound = 'ble.gattServiceNotFound', BleNoWebBluetooth = 'ble.noWebBluetooth', - FlashFirmwareConnectionFailed = 'flashFirmware.connectionFailed', FlashFirmwareTimedOut = 'flashFirmware.timedOut', FlashFirmwareBleError = 'flashFirmware.bleError', FlashFirmwareDisconnected = 'flashFirmware.disconnected', diff --git a/src/sagas/notification.test.ts b/src/sagas/notification.test.ts index 0fa962a8..b7b114bc 100644 --- a/src/sagas/notification.test.ts +++ b/src/sagas/notification.test.ts @@ -44,7 +44,6 @@ test.each([ add('warning', 'message'), add('error', 'message', 'url'), didUpdate({} as ServiceWorkerRegistration), - didFailToFinish(FailToFinishReasonType.FailedToConnect), didFailToFinish(FailToFinishReasonType.TimedOut), didFailToFinish( FailToFinishReasonType.BleError, @@ -97,6 +96,7 @@ test.each([ test.each([ bleDidFailToConnect({ reason: BleDeviceFailToConnectReasonType.Canceled }), bootloaderDidFailToConnect(BootloaderConnectionFailureReason.Canceled), + didFailToFinish(FailToFinishReasonType.FailedToConnect), didSucceed({} as ServiceWorkerRegistration), ])('actions that should not show a notification: %o', async (action: Action) => { const getToasts = jest.fn().mockReturnValue([]); diff --git a/src/sagas/notification.ts b/src/sagas/notification.ts index 1312f0a9..7f2aa445 100644 --- a/src/sagas/notification.ts +++ b/src/sagas/notification.ts @@ -235,9 +235,6 @@ function* showFlashFirmwareError( action: FlashFirmwareDidFailToFinishAction, ): Generator { switch (action.reason.reason) { - case FailToFinishReasonType.FailedToConnect: - yield* showSingleton(Level.Error, MessageId.FlashFirmwareConnectionFailed); - break; case FailToFinishReasonType.TimedOut: yield* showSingleton(Level.Error, MessageId.FlashFirmwareTimedOut); break;