Exiting from non compliant crypto projects?

Asalamualikum,
when I started my crypto investing journey I invest in some non compliant coins. At that time I was not having any concept of halal or haram coin.
Now due to crash my portfolio is down, should I exit from that coins right now or wait for my losses to recover. So that I can get back what I invested and exit then without taking single penny profit ?
Waiting for reply eagerly
it will be more helpful if sources of advice shared from Quran or book of Hadith
JazakAllah