After the second sale has been completed and the entire sale price has been paid, if no loss has resulted because of the resale, the deposit shall be returned to the first purchaser. If a loss has resulted and a portion of the deposit remains after payment of the loss, that portion shall be returned to the first purchaser.
La. R.S. § 13:4362