Specific performance cannot be enforced in favor of a party who has not fully and fairly performed all the conditions precedent on his part to the obligation of the other party, except when his failure to perform is only partial, and either entirely immaterial or capable of being fully compensated; in which case specific performance may be compelled, upon full compensation being made for the default.
SDCL 21-9-5