Agreed, if it is dropsy (I wasn’t sure, thanks Adorobella for all that info too) it should be euthanised. Also, seeming as OP said it’s in a fry tank, I’m assuming it’s by itself, so no worries about it being eaten by the other fish. Sorry for your loss, OP.
Did some quick research that might be helpful- Scientifically, the cause of the actual symptoms and organ failure is a type of bacteria called Aeromonas. This bacteria is present in your tank at all times, however your fish are only susceptible to it when their immune system is down. Bad immunity is often caused by is by poor water quality or long periods of high nitrates/nitrites/ammonia, stress, poor diet, or fluctuating water parameters such as temperature or pH.
I would suggest trying to find the cause of the dropsy to prevent it being spread to other fish- it’s most likely poor water quality, so a large water change, however it also could be a faulty heater. If it’s diet, which is the most unlikely, try adding some live food like bloodworms to their diet, or if your cheap like me breed some mosquito larvae, which are free.