From 786dc90d89dbb2deaef0282301d88b1568d56a33 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 20 Mar 2021 20:37:22 +0300
Subject: feat: handle query params and add Account page

---
 src/containers/TransfersUpload.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/containers/TransfersUpload.tsx')

diff --git a/src/containers/TransfersUpload.tsx b/src/containers/TransfersUpload.tsx
index 8239ab9..bddd0ad 100644
--- a/src/containers/TransfersUpload.tsx
+++ b/src/containers/TransfersUpload.tsx
@@ -15,8 +15,7 @@ const TransfersUpload: React.FC = () => {
     reader.readAsDataURL(file);
     reader.onload = (e: any) => {
       const uri = e.target.result;
-      post('/uploads', { uri })
-        .then(() => history.push('/transfers'));
+      post('/uploads', { uri }).then(history.goBack);
     };
   };
 
-- 
cgit v1.2.3

