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