How much you genuinely believe in a project usually determines the outcome. Then external factors like what is driving you or why you are walking said path. For most, it’s wanting to see Stripe notifications on your home screen so when these fail to materialise, so does your enthusiasm. Remember, many start but few succeed.
Find something you want to build and a solid reason as to why other than generating revenue. It’s a cliche but usually doing that produces revenue as a by-product.