If the record title owner or the personal representative of the owner's estate, within thirty days from the service of notice before foreclosure, performs the conditions or complies with the provisions upon which default in the mortgage occurred, the mortgage must be reinstated and remain in full force and effect the same as though a default had not occurred in the mortgage.
N.D.C.C. § 32-19-28