Skip to content

Commit a21911b

Browse files
committed
Removing server errors.
1 parent f6c4613 commit a21911b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

apps/dashboard/src/components/pay/RouteDiscovery.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const TRACKING_CATEGORY = "token_discovery";
2727
export const RouteDiscovery: React.FC = () => {
2828
const [isSubmitSuccess, setIsSubmitSuccess] = useState(false);
2929
const [isSubmitFail, setIsSubmitFailed] = useState(false);
30-
const [routeError, setError] = useState<string>();
3130
const walletChain = useActiveWalletChain();
3231

3332
// State to track the selected chain ID directly from the NetworkSelectorButton
@@ -87,7 +86,6 @@ export const RouteDiscovery: React.FC = () => {
8786
});
8887
},
8988
onError: (err) => {
90-
setError(err.message);
9189
setIsSubmitFailed(true);
9290
toast.error("Token Submission Failed");
9391

@@ -135,9 +133,6 @@ export const RouteDiscovery: React.FC = () => {
135133
<p className="mb-2 text-red-600">
136134
Please double check the network and token address. If issues persist,
137135
please reach out to our support team.
138-
{routeError && (
139-
<span className="mt-1 block text-sm">Error: {routeError}</span>
140-
)}
141136
</p>
142137
</div>
143138
);

0 commit comments

Comments
 (0)