diff --git a/.changelog/1578.bugfix.md b/.changelog/1578.bugfix.md new file mode 100644 index 000000000..a73f2f9b0 --- /dev/null +++ b/.changelog/1578.bugfix.md @@ -0,0 +1 @@ +Prevent crash when network error occur while fetching account names diff --git a/src/app/hooks/useAccountMetadata.ts b/src/app/hooks/useAccountMetadata.ts index 25d68e045..c8dc4659d 100644 --- a/src/app/hooks/useAccountMetadata.ts +++ b/src/app/hooks/useAccountMetadata.ts @@ -15,6 +15,7 @@ export const useAccountMetadata = (scope: SearchScope, address: string): Account const isPontusX = scope.layer === Layer.pontusxtest || scope.layer === Layer.pontusxdev const pontusXData = usePontusXAccountMetadata(address, { enabled: isPontusX }) const oasisData = useOasisAccountMetadata(scope.network, scope.layer, getOasisAddress(address), { + useErrorBoundary: false, enabled: !isPontusX, }) return isPontusX ? pontusXData : oasisData