Ensure text is filtered so it doesnt cause white screens (#1515)

* Ensure text is filtered so it doesnt cause white screens

* comment
This commit is contained in:
Tarik Gul 2025-03-05 06:48:51 -08:00 committed by GitHub
parent aaac168b38
commit 605fd8af57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,6 +53,8 @@ export default function useGenesisHashOptions (): Option[] {
) )
) )
) )
// rel: https://github.com/polkadot-js/extension/pull/1515
.filter((arr) => arr?.text)
.sort((a, b) => a.text.localeCompare(b.text)) .sort((a, b) => a.text.localeCompare(b.text))
], [metadataChains, t]); ], [metadataChains, t]);