The formal fallacy the denies the antecedent. See affirming the antecedent- affirming the consequent.
DENYING THE ANTECEDENT: “In denying the antecedent such as ‘If it raining the ground is wet: It is not raining the ground is dry.’ There is no valid conclusion drawn.”