Skip to content

fix: resolve multiple bugs - #554

Merged
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
laraba9987-cmyk:fix/bug-fixes-bundle
Jun 29, 2026
Merged

fix: resolve multiple bugs#554
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
laraba9987-cmyk:fix/bug-fixes-bundle

Conversation

@laraba9987-cmyk

@laraba9987-cmyk laraba9987-cmyk commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Closes #421,
Closes #423,
Closes #425,
Closes #426

#421 - Remove hardcoded webhook fallback secret

Removed the insecure fallback string literal in src/app/api/revalidate/route.ts. Now throws a clear error if REVALIDATE_WEBHOOK_SECRET is unset. Updated .env.example.

#423 - Fix duplicate transaction tables

Removed duplicate table block in src/components/TransactionHistory.tsx. Pagination now points to the single canonical table.

#425 - Add error logging to silent catch blocks

Added logger.warn/logger.error calls to empty catch blocks in blockchainSecurity.ts, phishingProtection.ts, walletHelpers.ts, useSearchHistory.ts, useCurrencyConverter.ts, ViewToggle.tsx.

#426 - Fix unclear setTimeout calls

Created src/hooks/useSafeTimeout.ts hook. Replaced bare setTimeout calls in 10 components to auto-cleanup on unmount.

- Remove hardcoded webhook fallback secret (MettaChain#421)
- Fix duplicate transaction tables in TransactionHistory (MettaChain#423)
- Add proper error logging to silent catch blocks (MettaChain#425)
- Create useSafeTimeout hook and fix uncleared timeouts (MettaChain#426)

Closes MettaChain#421, MettaChain#423, MettaChain#425, MettaChain#426
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@laraba9987-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

Conflicts with #543 on src/app/api/revalidate/route.ts. I am merging #543 first — feel free to rebase.

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @laraba9987-cmyk — solid bundle of bug fixes for #421, #423, #425, #426. Removing the hardcoded webhook fallback secret is exactly the kind of cleanup we want. This branch is conflicting with current main now — please rebase onto the latest main and resolve the conflicts so we can land these. 🛠️

@nanaf6203-bit
nanaf6203-bit merged commit 49cf141 into MettaChain:main Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants