Posting here cause there is no category for this

Hey guys I got an issue where my phone keeps rebooting for no reason I’ve fixed it once and you guys have helped me a lot is this worth trying to fix or would it be easier to just replace it it’s a galaxy s9 and the fingerprint sensor no longer works even though I replaced it