Hi Peter,
That's correct. The code works without using a condition to check the post type but it doesn't work when using a condition.
I tried a clean install and made sure that I'm targeting the correct post type.
https://www.loom.com/share/672f042422984623b0787b59e657a349