diff --git a/pwa/package.json b/pwa/package.json index 2ccb68a..2c35258 100644 --- a/pwa/package.json +++ b/pwa/package.json @@ -4,9 +4,7 @@ "private": true, "description": "Product Website Template", "author": "Conduction", - "keywords": [ - "gatsby" - ], + "keywords": ["gatsby"], "scripts": { "develop": "gatsby develop", "start": "gatsby develop", diff --git a/pwa/src/templates/resultTemplate/ResultTemplate.tsx b/pwa/src/templates/resultTemplate/ResultTemplate.tsx index bc7a291..9ddb44f 100644 --- a/pwa/src/templates/resultTemplate/ResultTemplate.tsx +++ b/pwa/src/templates/resultTemplate/ResultTemplate.tsx @@ -35,7 +35,7 @@ export const ResultTemplate: React.FC = ({ id }) => { setToken(publicKey); } if (!token) { - getToken(); + getToken().catch((err) => (setResult(false), setData(err.message))); } });