fix some incorrect logic & things AI hallucinated
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user