fix: don't crash if extrinsics is not loaded yet

This commit is contained in:
Carlo Sala
2025-05-06 16:35:39 +02:00
parent fda711ece3
commit f354e7f396
+1 -1
View File
@@ -65,7 +65,7 @@ export const BlockBody: FC<{
const getDefaultTab = (): Tab => {
if (defaultEventOpen) {
return defaultEventOpen.phase.type === "ApplyExtrinsic"
? extrinsics[defaultEventOpen.phase.value].signed
? extrinsics[defaultEventOpen.phase.value]?.signed
? "signed"
: "unsigned"
: "events"