fix(explore/web3): null-safe useProvider().data in 4 consumers (v1.1.5)

v1.1.4 changed useProvider to return null (react-query v5 forbids undefined)
but only switched the lib/web3 hooks. Four UI consumers kept
'const { data: { wallet } = {} } = useProvider()'; '= {}' defaults only
undefined, not null, so null data threw 'Cannot destructure property wallet
of {} as it is null' -> whole-page error boundary. Fixed to
'useProvider().data ?? {}' in ChainWidget, MultichainEcosystemsTableItem,
NetworkAddToWallet, AddressAddToWallet (+ wrap a pre-existing 169-char line).

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-07-14 08:02:11 -07:00
co-authored by Hanzo Dev
parent 4bbdbb1a8d
commit dcf0d9a048
5 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@luxfi/explore",
"version": "1.1.4",
"version": "1.1.5",
"private": false,
"homepage": "https://github.com/luxfi/explore#readme",
"engines": {