-
Notifications
You must be signed in to change notification settings - Fork 5k
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: check if the notifications started flow is running #27038
fix: check if the notifications started flow is running #27038
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [dc4cfd5]
Page Load Metrics (1687 ± 75 ms)
Bundle size diffs
|
Builds ready [614e557]
Page Load Metrics (1933 ± 79 ms)
Bundle size diffs
|
0491e5f
Builds ready [e7341cb]
Page Load Metrics (1758 ± 55 ms)
Bundle size diffs
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #27038 +/- ##
===========================================
- Coverage 70.15% 70.15% -0.00%
===========================================
Files 1425 1425
Lines 49653 49656 +3
Branches 13891 13892 +1
===========================================
Hits 34833 34833
- Misses 14820 14823 +3 ☔ View full report in Codecov by Sentry. |
@@ -51,14 +51,14 @@ export default function TurnOnMetamaskNotifications() { | |||
); | |||
const isProfileSyncingEnabled = useSelector(selectIsProfileSyncingEnabled); | |||
|
|||
const [buttonState, setButtonState] = useState<boolean>( | |||
const [loadingState, setLoadingState] = useState<boolean>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm always a bit more in favor of "boolean" names, like [isLoading, setIsLoading]
, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, you are right. I was a bit lazy :)
Quality Gate passedIssues Measures |
Builds ready [5e081d2]
Page Load Metrics (1788 ± 75 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!
Missing release label release-12.3.0 on PR. Adding release label release-12.3.0 on PR and removing other release labels(release-12.6.0), as PR was cherry-picked in branch 12.3.0. |
Description
This PR adds a check to the modal for enabling notifications. If the enabling process is in progress, closing the modal does not trigger the “dismissed” event.
Related issues
N/A
Manual testing steps
N/A
Screenshots/Recordings
N/A
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist