feat: update ParsedReceiptItem instantiation to use rawName for markdown responses
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -83,7 +83,7 @@ class ImportRepository {
|
|||||||
} else if (parsed.containsKey('markdown')) {
|
} else if (parsed.containsKey('markdown')) {
|
||||||
// Handle the case where the response is a QuickImportResult
|
// Handle the case where the response is a QuickImportResult
|
||||||
developer.log('Successfully parsed markdown', name: 'ImportRepository');
|
developer.log('Successfully parsed markdown', name: 'ImportRepository');
|
||||||
return [ParsedReceiptItem(name: parsed['markdown'], quantity: 1, price: 0)];
|
return [ParsedReceiptItem(rawName: parsed['markdown'], quantity: 1)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user