1397. A contract made in violation of a promise to contract may be set up against the beneficiary of the promise, but without affecting his remedy for damages against the promisor and the person having contracted in bad faith with the promisor.
The same rule applies to a contract made in violation of a first refusal agreement.