- {`Total Reagents/Maximum Reagents: - ${total_reagents}/${max_reagents}`} -
- ) - : null} + {/* Total_reagents could be null or undefined, so let's be safe */ + `Total Reagents/Maximum Reagents: + ${total_reagents ? total_reagents : 0}/${max_reagents}` + }