Please first verify that both computers are signed in to the same Microsoft account by clicking the OneDrive cloud icon in the taskbar > Settings > Account. On computer B, open File Explorer and make sure you are accessing the actual OneDrive synchronization folder rather than another local folder containing older copies. Then go to OneDrive Settings > Account > Choose folders and confirm that the affected folder is selected for synchronization. Keep in mind that the message "Your files are synced" does not necessarily mean every local folder matches OneDrive, particularly if you are viewing a folder outside the synchronized location.
If the account and folder settings are correct but the files remain different, first back up any important files on computer B that are not present in OneDrive to avoid accidental data loss. Then try resetting the OneDrive client by pressing Windows + R, entering %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and pressing Enter. Restart OneDrive from the Start menu afterward and allow synchronization to complete.
Could you confirm whether computer B displays older versions of the files or whether recently uploaded files are completely missing? Also, are both computers using the same OneDrive account and the same folder path?