From ec022d38b46ae96bb51007515139079c0b183572 Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Sat, 28 Sep 2024 07:02:34 -0500 Subject: [PATCH] Allow $0 estimates --- .../packages/payments/src/Escrow/validators/escrow/appraisal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/payload/packages/payments/src/Escrow/validators/escrow/appraisal.ts b/packages/payload/packages/payments/src/Escrow/validators/escrow/appraisal.ts index 26bd23234..e40d7d100 100644 --- a/packages/payload/packages/payments/src/Escrow/validators/escrow/appraisal.ts +++ b/packages/payload/packages/payments/src/Escrow/validators/escrow/appraisal.ts @@ -110,7 +110,7 @@ export const getAppraisalsForAllAssetsValidator = (dictionary: Record, exp: number): boolean => { if (!validateWithinWindow(estimate, exp)) return false if (estimate.currency !== 'USD') return false - if (estimate.price <= 0) return false + if (estimate.price < 0) return false return true }