Chosen Solution
Recently I Replaced Full Housing Of iPhone X. The Only Problem i am facing is with Compass. It wont Budget. So far what i tried : Full wipe and updateremoving the case although its soft silicon
You may have damaged the Compass IC during the repair. It is on one of the flexes (can’t remember exactly) so you’ll want to closely inspect the Lightning and Button flexes to insure everything is in good shape. I would also check the connectors as they may have been damaged instead.