Update setDiscount

Was causing stores to loop and crash.