Skip to content

Commit

Permalink
Error: Invalid hook call. Hooks can only be called inside of the body…
Browse files Browse the repository at this point in the history
… of a function component. This #1
  • Loading branch information
alexislepresle committed Mar 22, 2021
1 parent 16aa1a2 commit 6de1946
Show file tree
Hide file tree
Showing 3 changed files with 2,384 additions and 8,978 deletions.
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@
},
"homepage": "https://github.com/alexislepresle/gatsby-plugin-paypal#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"jest": "^26.6.3",
"prop-types": "^15.7.2",
"react": "^17.0.1"
"@babel/runtime": "^7.13.10",
"prop-types": "^15.7.2"
},
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"babel-preset-gatsby-package": "^0.11.0",
"cross-env": "^7.0.3"
"@babel/cli": "^7.13.10",
"@babel/core": "^7.13.10",
"babel-preset-gatsby-package": "^1.1.0",
"cross-env": "^7.0.3",
"jest": "^26.6.3",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"peerDependencies": {
"gatsby": "^2.31.1",
"gatsby": "^3.1.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

export const onRenderBody = ({ setHeadComponents }, pluginOptions) => {

if (!pluginOptions.clientId) {
if (!pluginOptions?.clientId) {
return null;
}

Expand Down

0 comments on commit 6de1946

Please sign in to comment.