Hide Checkout button based on specific customer tag

I tried the code and the error is now gone but the checkout button still shows when I am tagged as ‘Sales’.

Thank you so much for working on this with me!