Question Dell G7 7790 laptop not charging

May 6, 2022
I have a Dell G7 7790 and it had isssues when charging. Sometimes it stopped charging until I stopped using it for a while or moving the cable. One day it stopped charging at all, I opened it and saw that the battery was swolen so I replaced it with a new battery, computer will turn on with new battery but not charge. After that I tried replacing the charging port but still no luck. Now only thing I can think is that the charger is the fault.
Now I wonder if the new charger doesnt fix the issue, what can be the cause my laptop isnt charging?
I am not that big of a tech guy so clear answers would be appreciated.