Skip to content

Commit ef6cda4

Browse files
committed
remove console.logs, cleanup files
1 parent 7f2f447 commit ef6cda4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/components/NoData/NoData.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Root = styled.div`
1515
}
1616
`;
1717

18-
export default function NoData({ error, url }) {
18+
export default function NoData({ error, url, protocol }) {
1919
return (
2020
<Root>
2121
<div>
@@ -32,7 +32,13 @@ export default function NoData({ error, url }) {
3232
{error === 'Failed to fetch' && (
3333
<p>
3434
Feathers debugger <strong>not found</strong> on{' '}
35-
<a href={`${url}/feathers-debugger`}>{url}/feathers-debugger</a>
35+
<a
36+
href={`${protocol}://${url}/feathers-debugger`}
37+
target="_blank"
38+
rel="noreferrer"
39+
>
40+
{protocol}://{url}/feathers-debugger
41+
</a>
3642
</p>
3743
)}
3844
{error === 'version-not-supported' && (

src/components/Waterfall/Waterfall.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ function Waterfall() {
5353

5454
const fetchData = () => {
5555
const gt = Date.now() - timeframe * 1000 * 60; // timeframe from seconds to ms
56-
console.log('NOW');
5756
return fetch(
5857
`${baseUrl}?$sort[ts]=1&$limit=500&ts[$gt]=${gt}&$version=${packageJson.version}`
5958
)
@@ -257,7 +256,9 @@ function Waterfall() {
257256
</WaterfallItems>
258257
</Container>
259258
)}
260-
{!data.length && <NoData error={fetchError} url={url} />}
259+
{!data.length && (
260+
<NoData error={fetchError} url={url} protocol={protocol} />
261+
)}
261262
</Root>
262263
{/* Modals */}
263264
{settingsPane && (

0 commit comments

Comments
 (0)