First things first, try putting it in the fridge. If it hardens in the fridge then it's likely your home is on the warmer side and you'll need to store it in the fridge to keep it solid. It works if it isn't solid but may separate a bit. Alternatively, check to make sure you didn't use fractionated coconut oil which will not harden. You'll need to remake your recipe with non-fractionated coconut oil.