feat(INJI-106): add condition to display bluetooth state msg only after nearby permission is given

Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
This commit is contained in:
Alka
2023-06-08 12:16:25 +05:30
committed by Harsh Vardhan
parent f7ce0cb1a7
commit 784d55db03
6 changed files with 43 additions and 12 deletions

View File

@@ -41,7 +41,10 @@ export const RequestScreen: React.FC = () => {
if (controller.isNearByDevicesPermissionDenied) {
return <NearByPrompt {...props} />;
}
if (controller.isBluetoothDenied || !isBluetoothOn) {
if (
(controller.isBluetoothDenied || !isBluetoothOn) &&
controller.isReadyForBluetoothStateCheck
) {
return <BluetoothPrompt {...props} />;
}
if (