Browse Source

[+Elisa] Fixed expo link that had extra ?

Elena Cristina Raffay Iglesias 1 year ago
parent
commit
dd446763d6

+ 1 - 2
apps/petitions/petitions-app/config.json

@@ -1,11 +1,10 @@
1 1
 {
2 2
   "development": {
3 3
     "api": "http://localhost:3040",
4
-    "expoLink": "exp://localhost:19000"
4
+    "expoLink": "exp://localhost:19000?release-channel=development"
5 5
   },
6 6
   "production": {
7 7
     "api" : "http://ec2-34-253-207-49.eu-west-1.compute.amazonaws.com",
8 8
     "expoLink" : "exp://exp.host/@decode-barcelona/wallet?release-channel=production"
9 9
   }
10 10
 }
11
-

+ 2 - 2
apps/petitions/petitions-app/src/components/PetitionDetails.jsx

@@ -90,12 +90,12 @@ const handleErrors = (response) => {
90 90
 class PetitionDetails extends Component {
91 91
   static renderSignButton(petitionLink) {
92 92
     return (<div>
93
-      <AppLink href={`${expoLink}?mobile=true&petitionLink=${petitionLink}`}>
93
+      <AppLink href={`${expoLink}&mobile=true&petitionLink=${petitionLink}`}>
94 94
         <SignPetitionButton1>Sign with Wallet</SignPetitionButton1>
95 95
       </AppLink>
96 96
       <QRContainer>
97 97
         <ScanInstructions>Use wallet to scan QR code</ScanInstructions>
98
-        <QRCode value={`${expoLink}?petitionLink=${petitionLink}`} />
98
+        <QRCode value={`${expoLink}&petitionLink=${petitionLink}`} />
99 99
       </QRContainer>
100 100
     </div>);
101 101
   }