Skip to content

Commit

Permalink
error catch
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Jan 24, 2024
1 parent dc5faa5 commit fa753f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"private": true,
"description": "Product Website Template",
"author": "Conduction",
"keywords": [
"gatsby"
],
"keywords": ["gatsby"],
"scripts": {
"develop": "gatsby develop",
"start": "gatsby develop",
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/templates/resultTemplate/ResultTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ResultTemplate: React.FC<ResultTemplateProps> = ({ id }) => {
setToken(publicKey);
}
if (!token) {
getToken();
getToken().catch((err) => (setResult(false), setData(err.message)));
}
});

Expand Down

0 comments on commit fa753f4

Please sign in to comment.