Need help with 2 small bugs on an react project

Job ID: 36375794

Budget: €8 – €30 EUR

I have a web project where I'm using @zxing/library for a qr scanner/ reader feature.
I'm using decodeOnceFromVideoDevice method, that they are exposing, but when i scan a qr code it somehow enter the same method twice instead of just ones. because of this i have duplicate entries in my database.
Techologies: React , C# web api for the backend, entity framework and sqllite as db.
Related categories: JavaScript .NET C# Programming React.js QR Code Making