Keeping it in there overnight will be fine, as long as the frog has access to water and cover. I would also have both frogs checked/treated for gastrointestinal parasites.