About to leave, and have now lost motivation to go above and beyond at my current firm, rather just focusing on my core duties and that's it.

One of the main reasons why I have decided to leave is due to office politics impacting my ability to grow within the organization. In the past I would deal with it as part of my management role by going above and beyond, but now do not feel motivated to from no longer seeing a long term future here.

Guess the question I have, now that I am about to leave, is it worth making an extra effort given it will no longer be my problem once I am gone?