Q. In doubles, if a receiver receives from the wrong side, what is the rule when continuing play?
A. In most cases in tennis, errors are corrected immediately. It is more complicated for errors in tiebreaks, and you can read the entire rule (Rule 27.Correcting Errors) in the Rules of Tennis.
Receiving is different. If the error is discovered during that game, the receiving order remains as altered until the conclusion of that game. The partners then resume the regular order of receiving in their next receiving game. Remember, all previous points stand when this occurs, and partners may alter receiving order at the start of every set. (That would include a match tiebreak played in lieu of a final set.)