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