Hello,
You need to delete the code or change it.
An update of WC is another/independent thing. We recommend do not update WC before doing the theme update https://prnt.sc/XbuebvfwRxDm
https://xstore.8theme.com/update-history/
https://xstore.helpscoutdocs.com/article/63-theme-update
https://xstore.helpscoutdocs.com/article/37-plugins-update
Regards