ble/alerts: move bluetooth not available from notifications

This commit is contained in:
David Lechner
2022-07-15 13:19:31 -05:00
parent f86a9ad051
commit ef0cd6507d
11 changed files with 43 additions and 13 deletions
+1
View File
@@ -50,6 +50,7 @@ function* handleConnect(): Generator {
const available = yield* call(() => navigator.bluetooth.getAvailability());
if (!available) {
yield* put(alertsShowAlert('ble', 'bluetoothNotAvailable'));
yield* put(didFailToConnect(Reason.NoBluetooth));
return;
}