diff options
Diffstat (limited to 'src/containers/TransfersUpload.tsx')
-rw-r--r-- | src/containers/TransfersUpload.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
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); }; }; |