diff --git a/lib/src/components/base/Status.js b/lib/src/components/base/Status.js index 2f44dc6..bfb22c5 100644 --- a/lib/src/components/base/Status.js +++ b/lib/src/components/base/Status.js @@ -5,7 +5,7 @@ import { } from '../base/text'; const getColor = (code) => { - if (code === 0) { + if (code === 'Error') { return '#c0392b'; } if (code >= 500) { @@ -37,7 +37,7 @@ const Status = ({ }) => ( {code} - + {code !== 'Waiting' && } ) diff --git a/lib/src/network.js b/lib/src/network.js index 7d14d8e..3a2ed1a 100644 --- a/lib/src/network.js +++ b/lib/src/network.js @@ -74,7 +74,7 @@ class Network { headers, requestHeaders: this.getAllResponseHeaders(), request: this, - status: this.status, + status: this.status || 'Error', }); }) const proxiedSend = this.send;