Skip to content

Commit

Permalink
rm consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Sep 30, 2024
1 parent 9e8b5b0 commit e70031d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 4 additions & 2 deletions app/_components/QuotesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ const QuotesTable = ({ order }: props) => {
(chains as any)[orderChainKey].rpcUrls.default.http[0]
);
setQuotes(result);
} catch (e) {
console.error(e);
} catch (e: unknown) {
if (e instanceof Error) {
throw new Error(e.message);
}
}
};

Expand Down
1 change: 0 additions & 1 deletion app/_components/SubmissionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ export const SubmissionModal = ({
setError(e?.cause?.message || e?.message || 'An error occurred');
}
setOpen(false);
console.error(e);
}
};

Expand Down
7 changes: 3 additions & 4 deletions app/_components/WebappFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ const WebappFrame = ({ dotrainText, deploymentOption }: props) => {
try {
const urlState = await getUrlState();
if (urlState) setCurrentState((prev) => ({ ...prev, ...urlState }));
} catch (e) {
console.error('Error decoding state:', e);
} catch {
throw new Error('Error decoding state:');
} finally {
setLoading((prev) => ({ ...prev, decodingState: false }));
}
Expand All @@ -119,8 +119,7 @@ const WebappFrame = ({ dotrainText, deploymentOption }: props) => {
...prevState,
tokenInfos
}));
} catch (e) {
console.error(e);
} catch {
setError('Failed to fetch token information');
} finally {
setLoading((prev) => ({ ...prev, fetchingTokens: false }));
Expand Down
2 changes: 0 additions & 2 deletions app/my-strategies/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export default function MyStrategies() {
refetchInterval: 10000
});

console.log('data', query.data);

return (
<div className="flex-grow w-full flex flex-col items-start justify-items-start md:p-8 p-2 container">
<h1 className="text-2xl font-semibold mb-4">My Strategies</h1>
Expand Down
1 change: 1 addition & 0 deletions scripts/dev-script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import 'dotenv/config';
import { spawn } from 'node:child_process';
import isPortReachable from 'is-port-reachable';
Expand Down

0 comments on commit e70031d

Please sign in to comment.