i wanted to check a condition in DAML code but one value is a party and other is text and therefore getting ERROR:
• Couldn't match type ‘Party’ with ‘Text’ arising from a functional dependency between: constraint ‘DA.Internal.Record.HasField "owner" AccountInfo Text’ arising from a use of ‘DA.Internal.Record.getField’ instance ‘DA.Internal.Record.HasField "owner" AccountInfo Party’ at
if( login.party == "friend" || logout.party == "friend)
userCId <- create Users with userType= "Friendly User",..
return (Right userCId)