This has been discussed on the telegram group and someone suggested a workaround while the issue still exists.
vlladdrakk on telegram:
So I took a look at that code, though I don't know c++ well, but it looks like it is a case sensitivity issue. The detected name is "pine64 pinephone (1.2)" but the name in pinephone.yaml is "Pine64 PinePhone (1.2)" I edited /etc/deviceinfo/devices/pinephone.yaml to match the case of the detected name and device info is now showing the correct device information. It is odd since the detected name is purposely lowercased here: https://gitlab.com/ubports/core/deviceinfo/-/blob/main/src/config.cpp#L65 and that change was from a long time ago, so I'm not sure why it is causing a problem now and not before. Someone else may already be fixing the problem