It depends on the type of hepatitis you had.
Hepatitis A and B
Hepatitis is an inflammation of the liver caused by infection (like the hepatitis A or B viruses) or an unknown cause. You need to wait at least 12 months after you’ve made a full recovery before you donate blood. When you do donate, make sure you notify the interviewer so they can request some extra tests on your donation to be safe.
If you currently have or have ever had hepatitis C, you are not eligible to donate.