From 022dd82372ab4a14272f795d10acbaeaf3be7bf6 Mon Sep 17 00:00:00 2001 From: avlyalin Date: Sun, 14 Jun 2020 16:44:08 +0300 Subject: [PATCH] fix: remove share link callback --- src/containers/app/app.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/containers/app/app.js b/src/containers/app/app.js index 29977c6..4e8623c 100644 --- a/src/containers/app/app.js +++ b/src/containers/app/app.js @@ -176,17 +176,10 @@ class App extends Component { shareSession() { if (navigator.share) { - navigator - .share({ - title: this.t('root.title'), - url: Location.getGameLink(this.sessionId), - }) - .then(() => { - toast.success(this.t('root.linkCopied')); - }) - .catch(() => { - toast.error(this.t('error.linkNotCopied')); - }); + navigator.share({ + title: this.t('root.title'), + url: Location.getGameLink(this.sessionId), + }); } else { const isCopied = copy(Location.getGameLink(this.sessionId)); if (isCopied) {