Skip to content

Commit

Permalink
remove console.logs, cleanup files
Browse files Browse the repository at this point in the history
  • Loading branch information
radenkovic committed Aug 29, 2020
1 parent 7f2f447 commit ef6cda4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/components/NoData/NoData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Root = styled.div`
}
`;

export default function NoData({ error, url }) {
export default function NoData({ error, url, protocol }) {
return (
<Root>
<div>
Expand All @@ -32,7 +32,13 @@ export default function NoData({ error, url }) {
{error === 'Failed to fetch' && (
<p>
Feathers debugger <strong>not found</strong> on{' '}
<a href={`${url}/feathers-debugger`}>{url}/feathers-debugger</a>
<a
href={`${protocol}://${url}/feathers-debugger`}
target="_blank"
rel="noreferrer"
>
{protocol}://{url}/feathers-debugger
</a>
</p>
)}
{error === 'version-not-supported' && (
Expand Down
5 changes: 3 additions & 2 deletions src/components/Waterfall/Waterfall.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function Waterfall() {

const fetchData = () => {
const gt = Date.now() - timeframe * 1000 * 60; // timeframe from seconds to ms
console.log('NOW');
return fetch(
`${baseUrl}?$sort[ts]=1&$limit=500&ts[$gt]=${gt}&$version=${packageJson.version}`
)
Expand Down Expand Up @@ -257,7 +256,9 @@ function Waterfall() {
</WaterfallItems>
</Container>
)}
{!data.length && <NoData error={fetchError} url={url} />}
{!data.length && (
<NoData error={fetchError} url={url} protocol={protocol} />
)}
</Root>
{/* Modals */}
{settingsPane && (
Expand Down

0 comments on commit ef6cda4

Please sign in to comment.