Unfortunately, this isn't something we can answer for you. It's an important decision that you must carefully think about and ensure it is in alignment with the direction you want to go in your life.
If you're starting an online business, then you wouldn't want to quit your job until you're making enough money from your online business consistently, so that it can pay for your monthly expenses.
It can take time to ensure that an online business is secure and stable enough that it can support you full-time. It's often best to build your online business on the side, while keeping your job, so that you also have some money to invest in it along the way.
Once your online business is secure, providing you income every month that can pay for your expenses, then you may want to consider quitting your job and working on your business full-time.