From d8e9a5f61ce9f2ced957bb5e9579b5ea6cb33b91 Mon Sep 17 00:00:00 2001
From: Jonathan Cremin <jonathan@crem.in>
Date: Mon, 12 Jan 2015 00:00:27 +0000
Subject: [PATCH] Use fetched data instead of params for url building

---
 views/share.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/share.jsx b/views/share.jsx
index 60f4bd2..bdc13b8 100644
--- a/views/share.jsx
+++ b/views/share.jsx
@@ -90,7 +90,7 @@ module.exports = React.createClass({
         name: this.props.shares[0].name,
         artist: this.props.shares[0].artist.name,
         shares: this.props.shares,
-        shareUrl: "https://match.audio/" + this.getParams().service + "/" + this.getParams().type + "/" + this.getParams().id
+        shareUrl: "https://match.audio/" + this.props.shares[0].service + "/" + this.props.shares[0].type + "/" + this.props.shares[0].id
       };
     }
     return {