Skip to content

Add dual qr reading - #32

Open
devferx wants to merge 1 commit into
mainfrom
feature/dual-qr-reading
Open

Add dual qr reading#32
devferx wants to merge 1 commit into
mainfrom
feature/dual-qr-reading

Conversation

@devferx

@devferx devferx commented Dec 16, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

@devferx devferx linked an issue Dec 16, 2023 that may be closed by this pull request
return docData.data() as AppQr | undefined;
}

readQr(qr: AppQr, user: AppUser) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing return type

const balance = qr?.balance ?? 0;

if (qr.users?.includes(user.email!)) {
return from(Promise.reject('Ya has escaneado este código')).pipe(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya escaneaste este código

if (!this.isScannActive) return;

if (qrData.startsWith('{') && qrData.endsWith('}')) {
const data = JSON.parse(qrData);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may potentially throw an error, you should handle that

this.dialogRef.close();
}

ngOnDestroy(): void {}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed, delete it

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.

Agregar lógica para leer QRs sueltos

2 participants