Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: add a guard for a possibly undefined safeAccountConfig #4529

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Nov 18, 2024

What it solves

The app might crash when coming back after a 6-week vacation with an old localStorage.

Screenshot 2024-11-16 at 18 34 38

How to test

  • Check out an old version of the app (from September 2024)
  • Connect a wallet
  • Add a few Safes to the watchlist
  • Then check out the latest production code
  • Connect wallet
  • Open the Safe List sidebar
  • App crashes

@katspaugh katspaugh requested a review from compojoom November 18, 2024 06:25
Copy link

github-actions bot commented Nov 18, 2024

@katspaugh katspaugh changed the title Fix: adda a guard for a possibly undefined safeAccountConfig Fix: add a guard for a possibly undefined safeAccountConfig Nov 18, 2024
Copy link

📦 Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 1014.35 KB (-48 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
74.27% (+0.01% 🔼)
14066/18939
🔴 Branches
52.61% (+0.04% 🔼)
3482/6619
🔴 Functions 58.04% 2053/3537
🟡 Lines
75.9% (+0.02% 🔼)
12778/16836

Test suite run success

1619 tests passing in 217 suites.

Report generated by 🧪jest coverage report action from 338a74d

Copy link
Contributor

@compojoom compojoom left a comment

Choose a reason for hiding this comment

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

Haven't tested it, but code looks ok.

@katspaugh katspaugh changed the base branch from dev to release November 19, 2024 10:13
@katspaugh katspaugh merged commit 6b64842 into release Nov 19, 2024
15 checks passed
@katspaugh katspaugh deleted the fixundefined branch November 19, 2024 10:26
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants