From 79127d3beb8d6f5b0d25e07b4a327cb37ef35727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Tue, 27 Jul 2021 10:20:53 +0500 Subject: [PATCH] Deposit page zoom bugfix --- src/pages/Deposit.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {