def reset_slider(modal_open, selected_confidence):
    """
    Reset the confidence slider range value to [0, 60] after closing the
    modal component.

    Parameters
    ----------
    modal_open : bool
        A boolean that describes if the modal component is open or not
    selected_confidence : list of float
        The selected minimum and maximum values of the confidence slider

    Returns
    -------
    list of float
        The default minimum and maximum values of the confidence slider
    """
    # The modal window is closed so reset the slider values.
    if not modal_open:
        return [0, 60]

    # The modal window is open so return the current slider values.
    return selected_confidence