Skip to content

Commit 3215e4d

Browse files
committed
fix: update error message for not found addresses
1 parent c2f8d4d commit 3215e4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/routes/$chainSlug/_layout/address/$addressAddress.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,19 @@ function AddressRoute() {
121121
}
122122

123123
if (isError && error instanceof NotFoundError) {
124-
return <ErrorAlert className="my-16" message="Address not found." />;
124+
return (
125+
<ErrorAlert className="my-16" message="No data found for this address." />
126+
);
125127
}
126128

127129
return (
128130
<div className="mt-8 flex flex-col gap-6">
129131
<SearcherBar className="py-6" />
130132

131133
<div className="space-y-2">
134+
{isError && error instanceof NotFoundError ? (
135+
<ErrorAlert message="Address not found." />
136+
) : null}
132137
<h1 className="flex items-center gap-2 font-sans text-2xl font-extrabold">
133138
<AddressIcon size={24} />
134139
Address details

0 commit comments

Comments
 (0)