A Project i invested in started doing haram activity

Assalamu Alaikom,

I invested in an NFT project which claimed at first to do halal business such as, creating discord bots and offering services to other project. Lets say i invested 100 dollars. After some time the project faced some failures and they switched to building an online casino. At that time my investment was worth 50 dollars. Now we are sure that the project has haram intent and is doing haram activity. The value of my investment started to go up slowly. Now it is worth 60. Should i wait until i break even with my initial investment or should i sell instantly with a loss?

Barakallahou fikom