(bugfix) decoding hub3a from image did not work
This commit is contained in:
@@ -53,10 +53,10 @@ export const BillEditForm: FC<BillEditFormProps> = ({ location, bill }) => {
|
||||
// by converting it to `hub3aText`
|
||||
if (!hub3aText && bill?.barcodeImage) {
|
||||
decodeFromImage(bill.barcodeImage).then(results => {
|
||||
if (results && results.length > 0) {
|
||||
if (results) {
|
||||
const {
|
||||
hub3aText: decodedHub3aText,
|
||||
} = results[0];
|
||||
} = results;
|
||||
|
||||
setHub3aText(decodedHub3aText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user