Don't crash if there is no tip field in extrinsics (#2466)

This commit is contained in:
Spencer Judge 2020-03-27 09:53:28 -07:00 committed by GitHub
parent d24c69c37f
commit a269da606b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ function renderExtrinsic (props: Props, extrinsic: Extrinsic, index: number, t:
: t('mortal')
: t('immortal')
}
tip={extrinsic.tip.toBn()}
tip={extrinsic.tip?.toBn()}
value={extrinsic}
withHash
/>