useless to check history if there are no transfers

This commit is contained in:
controlol 2021-10-29 21:17:22 +02:00
parent 2f96d2c112
commit b3dddfb5a2

View File

@ -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"
})