mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Make googleAnalytics config optional
This commit is contained in:
@@ -57,7 +57,7 @@ const Project = (props) => {
|
||||
key={index}
|
||||
onClick={() => {
|
||||
try {
|
||||
if (config.googleAnalytics.id) {
|
||||
if (config.googleAnalytics?.id) {
|
||||
ga.event({
|
||||
action: "Click project",
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user