When the /operations endpoint has a response, but it doesn't have the vaa field (no vaa emitted yet), we call the observations endpoint to get the current signatures and we display the regular UI with the signatures and information.
When the /operations endpoint has no response for a txHash, we call the observations endpoint and we show a only-data screen with the signatures, the observations, the txHash and the vaa-id.
Description
This PR improves the observations handling:
/operations
endpoint has a response, but it doesn't have thevaa
field (no vaa emitted yet), we call the observations endpoint to get the current signatures and we display the regular UI with the signatures and information./operations
endpoint has no response for a txHash, we call the observations endpoint and we show a only-data screen with the signatures, the observations, the txHash and the vaa-id.Screenshots
with operations without vaa![Screenshot 2024-06-28 at 11 41 34](https://github.com/XLabs/wormscan-ui/assets/41705567/24858dfe-a6ce-4f61-a55f-83060eb208f7)
without operations![Screenshot 2024-06-28 at 11 44 28](https://github.com/XLabs/wormscan-ui/assets/41705567/73973048-ca3a-40ff-bd1c-a54a393d94f7)