I had a betta that survived ~30 minutes on the damp floor of a car (it wasn't my fault and the fish wasn't under my care at that time
). I once netted a tiger barb, but didn't know it, so I left it sitting in the net for a good 30 seconds or so as well. He or she is swimming in my tank now
Point being, they should be fine! Good luck.