fix some incorrect logic & things AI hallucinated

This commit is contained in:
2025-05-29 19:36:35 -06:00
parent 820ae727ed
commit 92e4570672
4 changed files with 7 additions and 34 deletions

View File

@@ -668,9 +668,6 @@ export function hydrateGive(
: {
"@context": SCHEMA_ORG_CONTEXT,
"@type": "GiveAction",
object: undefined,
agent: undefined,
fulfills: [],
};
if (lastClaimId) {
@@ -688,8 +685,6 @@ export function hydrateGive(
if (amount && !isNaN(amount)) {
const quantitativeValue: QuantitativeValue = {
"@context": SCHEMA_ORG_CONTEXT,
"@type": "QuantitativeValue",
amountOfThisGood: amount,
unitCode: unitCode || "HUR",
};
@@ -857,10 +852,7 @@ export function hydrateOffer(
? R.clone(vcClaimOrig)
: {
"@context": SCHEMA_ORG_CONTEXT,
"@type": "OfferAction",
object: undefined,
agent: undefined,
itemOffered: {},
"@type": "Offer",
};
if (lastClaimId) {