since the last AGOL update my attribute expression is no longer working it just returns
[object Object]

this is a simplified example with just one if and it returns the correct data in the arcade editor when you run it

but just returns [object Object] in the popup when you click on the polygon in the map.
any ideas?