How to avoid it

So there’s been a bug that my family have gotten.

It last a day or so, they have been vomiting and diarrhoea. I haven’t had it yet. Mum had it the past two day. But I feel really sick. Is there anything I can do to avoid vomiting ?

I have the biggest fear of it