fix problem clicking on offer-delivery, plus some other hardening and phrasing

This commit is contained in:
2025-06-08 20:13:32 -06:00
parent dcd0cc4c20
commit 5976a4995e
7 changed files with 17 additions and 21 deletions

View File

@@ -416,8 +416,10 @@ export function offerGiverDid(
*/
export const canFulfillOffer = (
veriClaim: GenericCredWrapper<GenericVerifiableCredential>,
isRegistered: boolean,
) => {
return (
isRegistered &&
veriClaim.claimType === "Offer" &&
!!offerGiverDid(veriClaim as GenericCredWrapper<OfferClaim>)
);