Logical fallacy
Wishful thinking
Treats the desirability of an outcome or hope that it occurs as evidence that the outcome is real, likely, or assured.
Examples
I want the forecast to be sunny, so I treat sunshine as likely despite the rain forecast.
The offer would make my family happy, so I assume it is genuine without verification.
We badly need rain next weekend, so it will probably rain then.
A similar case that can be sound
We need rain next weekend, so it is worth preparing both an irrigation plan and a rain plan.