From the jurisprudential point of view, fasting is valid, and it is not obligatory to repeat it, but from the point of view of worship, it has no value, because prayer is the pillar of religion, and if it is accepted, everything else is accepted, and if it is rejected, everything else is rejected, so how about if you are not praying?!