Skip to content

fix: resolve Keystone QR scan button doing nothing#1028

Merged
bryzettler merged 1 commit intomainfrom
bugfix/keystone-camera
Mar 24, 2026
Merged

fix: resolve Keystone QR scan button doing nothing#1028
bryzettler merged 1 commit intomainfrom
bugfix/keystone-camera

Conversation

@bryzettler
Copy link
Copy Markdown
Contributor

The button did nothing due to two issues:

  1. Navigation targeted the root stack, rendering the scanner behind the modal. Fixed by navigating to KeystoneNavigator within the AddNewAccountNavigator stack.
  2. The useCamera hook's async permission check caused a race condition where hasPermission was always false on first tap, and the fallback BottomSheetModal failed silently inside a ScrollView.

Removed the redundant permission gate entirely — DynamicQrScanner already handles all camera permission states on mount.

The button did nothing due to two issues:
1. Navigation targeted the root stack, rendering the scanner behind
   the modal. Fixed by navigating to KeystoneNavigator within the
   AddNewAccountNavigator stack.
2. The useCamera hook's async permission check caused a race condition
   where hasPermission was always false on first tap, and the fallback
   BottomSheetModal failed silently inside a ScrollView.

Removed the redundant permission gate entirely — DynamicQrScanner
already handles all camera permission states on mount.
@bryzettler bryzettler requested a review from ChewingGlass March 24, 2026 20:23
@bryzettler bryzettler requested a review from a team as a code owner March 24, 2026 20:23
@bryzettler bryzettler requested review from Perronef5, allenan and tyler-whitman and removed request for a team, Perronef5, allenan and tyler-whitman March 24, 2026 20:23
@bryzettler bryzettler merged commit e8d3ab5 into main Mar 24, 2026
4 checks passed
@bryzettler bryzettler deleted the bugfix/keystone-camera branch March 24, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants