I had the same issue last year.

You just keep both the passports with you, and show both the passports to the official while passing through immigration.

NO ISSUES.