How does the sentence end?

The cup got full when James was just emptying the bottle he bought from the store. The
cup is a small one.