Wired connection eth taking preference

eth0 is taking preference over wlan0 for internet

sudo apt install ifmetric

Run:
route

This will show you the current interfaces and their metric.
The lower metric is the preferred choice.

sudo ifmetric wlan0 50

wlan0 will now be the preferred connection