diff --git a/src/pages/Deposit.jsx b/src/pages/Deposit.jsx index 9988fc6..26818fb 100644 --- a/src/pages/Deposit.jsx +++ b/src/pages/Deposit.jsx @@ -7,7 +7,7 @@ import {ClusterService} from '../services/api' import notify from '../components/notify' const calcViewParams = (clusters) => { - if (clusters || clusters.length === 0) + if ((!clusters) || clusters.length === 0) return {center:[60.81226, 70.0562], zoom: 5} const center = clusters.reduce((sum, cluster) => {