The liver performs many vital functions including filtering toxins and produicing things like natural anti coagulants.
Impairment of these affects the heart
along with other organs. When the liver is affected by things like cirrhosis, it can cause abnormal filling pressures within the heart. This, if untreated, can lead to failure of the right side of the heart.