Skip to content

Commit

Permalink
connect to last location if none is provided (stripe#152)
Browse files Browse the repository at this point in the history
* connect to last location if none is selected

* connect with last location

* fix tsc
  • Loading branch information
jdivock-stripe authored and arekkubaczkowski committed Jun 29, 2022
1 parent 2a2258a commit 0e7a00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/screens/DiscoverReadersScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default function DiscoverReadersScreen() {

const { reader: connectedReader, error } = await connectBluetoothReader({
reader,
locationId: selectedLocation?.id,
locationId: selectedLocation?.id || reader?.location?.id,
});

if (error) {
Expand Down

0 comments on commit 0e7a00a

Please sign in to comment.