Charge on computer but not in wall

when I plug my switch into my computer it charges fine either way I plug it in but if I plug it into the wall it won’t charge at all I know the charger works because it works on my switch lite any ideas