Guy bestfriend with a girlfriend (who dislikes me) bought me a small souvenir, so I hugged him when he gave it to me? Am I wrong? ?

when he gave it to me, i said that i'd give him a hug but that i'm not sure if he'd be ok with it. So we went along and hugged each other. He is one of my best friends, but obviously his girlfriend strongly dislikes me. Was I wrong/too flirty to go for a hug?

Guy bestfriend with a girlfriend (who dislikes me) bought me a small souvenir, so I hugged him when he gave it to me? Am I wrong? ?
Post Opinion