-
Notifications
You must be signed in to change notification settings - Fork 411
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
[Counterfactual] Disable notifications and message signing #3240
Changes from all commits
cac607c
a4f0f0f
edd2366
2ebc381
8d49cac
6feb75a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,7 @@ export const PushNotifications = (): ReactElement => { | |
<FormControlLabel | ||
control={<Switch checked={!!preferences} onChange={handleOnChange} />} | ||
label={preferences ? 'On' : 'Off'} | ||
disabled={!isOk || isRegistering} | ||
disabled={!isOk || isRegistering || !safe.deployed} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in SignMessage we do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, with that many variables it makes sense to extract it into a new one for better readability. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One issue is that here we have the |
||
/> | ||
)} | ||
</CheckWallet> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,7 @@ describe('SignMessage', () => { | |
}, | ||
chainId: '5', | ||
threshold: 2, | ||
deployed: true, | ||
} | ||
|
||
beforeEach(() => { | ||
|
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.
just curious - why do we have to debounce here?
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 think the issue was that there were too many popups opening up at the same time which looked messy. This way there is a small delay before this popup opens. Not ideal but a bit better on the UX side.