H1 extension approved after amendment denied

I had H1B for client A, filed amendment for client B and Location C and came to US based on receipt number on OCT 2018. My H1B was getting expired on AUG 2019, so I filed extension for same client B and location C which got approved. Now I got to know that my initial amendment was denied. I have my I797 with approved petition.
Can i continue my work ?? or i am can not.

Please let me know your comments

I am not sure, how you can arrive in US on receipt. Please articulate clearly.
In simple, you can only work in a location, if your amendment is approved. If it is denied, then you cannot. You should talk to your attorney, they will guide you…