Skip to content

Commit

Permalink
Revert strict mode for development, add condition for commit wallet o…
Browse files Browse the repository at this point in the history
…pened and finish wallet opened tracking events
  • Loading branch information
nhohb committed Sep 4, 2024
1 parent faa5383 commit e7e4e33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const babelIncludeRegexes = [
* @type {import('next').NextConfig}
* */
const nextConfig = {
reactStrictMode: process.env.NODE_ENV !== 'development',
reactStrictMode: true,
compiler: {
styledComponents: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,12 @@ export const TransactionStageModal = ({
}
onClick={() => {
sendTransaction(request!)
trackRegistrationEvent(
actionName === 'commitName' ? 'Commit Wallet Opened' : 'Finish Wallet Opened',
)

if (['commitName', 'registerName'].includes(actionName)) {
trackRegistrationEvent(
actionName === 'commitName' ? 'Commit Wallet Opened' : 'Finish Wallet Opened',
)
}
}}
data-testid="transaction-modal-confirm-button"
>
Expand Down

0 comments on commit e7e4e33

Please sign in to comment.