Skip to content

Commit

Permalink
Feature/token stats fix v2 (solana-labs#696)
Browse files Browse the repository at this point in the history
* logs

* fix sentry

* logs
  • Loading branch information
abrzezinski94 authored May 24, 2022
1 parent bc5b4fe commit 9928b26
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
28 changes: 14 additions & 14 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// workaround for ESM module loader errors
// see https://github.com/vercel/next.js/issues/25454
//const { withSentryConfig } = require('@sentry/nextjs')
const { withSentryConfig } = require('@sentry/nextjs')
const withTM = require('next-transpile-modules')([
'react-markdown',
'@solana/wallet-adapter-base',
Expand Down Expand Up @@ -35,18 +35,18 @@ config = withTM({
// STEP 2: Enable bundle analyzer when `ANALYZE=true`.
config = withBundleAnalyzer(config)

// if (process.env.SENTRY_AUTH_TOKEN) {
// STEP 3: Sentry error reporting. MUST COME LAST to work with sourcemaps.
// config = withSentryConfig(config, {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, org, project, authToken, configFile, stripPrefix,
// urlPrefix, include, ignore
//silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
// })
// }
if (process.env.SENTRY_AUTH_TOKEN) {
// STEP 3: Sentry error reporting. MUST COME LAST to work with sourcemaps.
config = withSentryConfig(config, {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, org, project, authToken, configFile, stripPrefix,
// urlPrefix, include, ignore
silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
})
}

module.exports = config
1 change: 1 addition & 0 deletions pages/dao/[symbol]/token-stats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ const LockTokenStats = () => {
},
},
])
console.log(allVoters, '@@@@@')
const currentRealmVoters = allVoters && allVoters.length ? allVoters : []
setVoters(currentRealmVoters)
}
Expand Down

0 comments on commit 9928b26

Please sign in to comment.