Disabling default checkout discount messaging when using custom script

Shopify Partner
4 0 0

Our store is using a custom script to take a percentage off the most expensive item in the cart, and generates a custom message for display to the end user. Since the March checkout update, the custom message is still displaying, but Shopify is also appending a zero value discount with the discount code's title. 



Is there a way to disable this default discount message  for this script aside from something hacky like pulling it out of the DOM with JS or the like? Feel free to let me know if this should be in a different forum as well, this just seemed the most likely.


Thanks in advance!