minor edits to suggest the G-Pay button

This commit is contained in:
Billy Lo 2021-10-16 15:45:22 -04:00
parent 7da3e297a2
commit d6d9691aee
4 changed files with 10 additions and 10 deletions

View File

@ -463,7 +463,6 @@ function Form(): JSX.Element {
if (isAndroid) {
if (Number(osVersion) > 8) {
setAddErrorMessage("Hi, Android users, check out our new Add to Google Pay button...")
setIsDisabledGooglePay(false);
} else {
setAddErrorMessage("Sorry, Add to Google Pay is only available to Android 8.1+.")

View File

@ -1,6 +1,6 @@
{
"name": "grassroots_covidpass",
"version": "1.9.7",
"version": "1.10.0",
"author": "Billy Lo <billy@vaccine-ontario.ca>",
"license": "MIT",
"private": false,

View File

@ -78,15 +78,15 @@ export class PassPhotoCommon {
const registerUrl = `${registrationHost}/register${functionSuffix}`;
// console.log(registerUrl);
// const response = await fetch(registerUrl, requestOptions);
// const responseJson = await response.json();
const response = await fetch(registerUrl, requestOptions);
const responseJson = await response.json();
// // console.log(JSON.stringify(responseJson,null,2));
// if (responseJson["result"] != 'OK') {
// console.error(responseJson);
// return Promise.reject(`Error while trying to register pass!`);
// }
if (responseJson["result"] != 'OK') {
console.error(responseJson);
return Promise.reject(`Error while trying to register pass!`);
}
const encodedUri = `serialNumber=${encodeURIComponent(payload.serialNumber)}&vaccineName=${encodeURIComponent(payloadBody.receipts[numDose].vaccineName)}&vaccinationDate=${encodeURIComponent(payloadBody.receipts[numDose].vaccinationDate)}&organization=${encodeURIComponent(payloadBody.receipts[numDose].organization)}&dose=${encodeURIComponent(payloadBody.receipts[numDose].numDoses)}`;
const qrCodeUrl = `${verifierHost}/verify?${encodedUri}`;

View File

@ -3,8 +3,9 @@ import { Integrations } from '@sentry/tracing';
export const initSentry = () => {
SentryModule.init({
release: 'grassroots_covidpass@1.9.23', // App version. Needs to be manually updated as we go unless we make the build smarter
dsn: 'https://7120dcf8548c4c5cb148cdde2ed6a778@o1015766.ingest.sentry.io/5981424',
release: 'grassroots_covidpass@1.10.0', // App version. Needs to be manually updated as we go unless we make the build smarter
dsn: "https://e0c718835ae148e2b3bbdd7037e17462@o997319.ingest.sentry.io/6000731",
integrations: [
new Integrations.BrowserTracing(),
],