I have tested in my end and I cannot reproduce the issue. Here're steps:
1.Register the SharePoint Online site collection as hub site.
2.Change the hub site logo.
3.Migrate a sub site from SharePoint server to SharePoint Online.
4.Sub site logo should be same as hub site collection.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.