Legally it is the sellers call to refund or replace or repair.

It is entirely up to the seller if they chose to offer a partial refund and let you retain the goods.