By default, the app is going to apply a discount based on the sale price of the product, rather than its compare at price.
But if you intend to have the discount applied on the compare at price rather than its sale price, then just go to Settings. Under the General tab, scroll over to Base price settings and check out the option below.