InputField doesn't set itself to 0 when you input a number then remove it?

The input field, in the beginning, is empty, and then there are no problems.
When you enter a number in it (It’s set to integers) it works perfectly, but if you remove that number, instead of going back to its original state or at least setting itself to 0, the input field stays empty. And it’s needed to have a number in it. If it’s sposed to be empty let it go back to how it already was before clicking it. Or at least set it to 0.

This is the Script::

using UnityEngine;
using UnityEngine.UI;

public class Ok : MonoBehaviour
{
public static float totalSeconds;

public float hours;

public Text totalSecondsText;
public InputField hoursInputField;

// Update is called once per frame
void Update()
{
    totalSeconds = hours;
    totalSecondsText.text = totalSeconds.ToString();

    hours = float.Parse (hoursInputField.text) * 3600;
    
    if (hoursInputField.text == "")
    {
        hoursInputField.text = 0f (a "float = 0" basicaly);
        hours = 0f;
    }
}

}

using UnityEngine;
using UnityEngine.UI;

public class Ok : MonoBehaviour
{
    public static float totalSeconds;
    public float hours;
    public Text totalSecondsText;
    public InputField hoursInputField;

    private void Start()
    {
        hoursInputField.onValueChanged.AddListener(OnHoursValueChanged);
    }
    
    void OnHoursValueChanged(string newHoursValue)
    {
        if (string.IsNullOrWhiteSpace(newHoursValue))
            return;

        if(float.TryParse(hoursInputField.text, out hours))
        {
            totalSeconds = hours * 3600;
            totalSecondsText.text = totalSeconds.ToString();
        }
    }
}