useless to check history if there are no transfers
This commit is contained in:
@@ -142,6 +142,8 @@ class App extends Component {
|
|||||||
if (typeof response.data !== "object") throw new Error("invalid response")
|
if (typeof response.data !== "object") throw new Error("invalid response")
|
||||||
const stats = response.data
|
const stats = response.data
|
||||||
|
|
||||||
|
if (stats.transfers === 0) return this.setState({ stats })
|
||||||
|
|
||||||
return API.request({
|
return API.request({
|
||||||
url: "core/transferred"
|
url: "core/transferred"
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user