mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-01 19:45:04 +01:00
Merge pull request #6636 from BlueWallet/push
FIX: Notification toggle was stopped by an undefined object
This commit is contained in:
commit
720a47cbd0
2 changed files with 4 additions and 2 deletions
|
@ -152,7 +152,7 @@ function Notifications(props) {
|
|||
message: loc.notifications.would_you_like_to_receive_notifications,
|
||||
options,
|
||||
cancelButtonIndex: 0, // Assuming 'no and don't ask' is still treated as the cancel action
|
||||
anchor: findNodeHandle(anchor.current),
|
||||
anchor: anchor ? findNodeHandle(anchor.current) : undefined,
|
||||
},
|
||||
buttonIndex => {
|
||||
switch (buttonIndex) {
|
||||
|
|
|
@ -8,8 +8,10 @@ export default class ActionSheet {
|
|||
InteractionManager.runAfterInteractions(() => {
|
||||
const iosOptions = {
|
||||
...options,
|
||||
anchor: options.anchor,
|
||||
};
|
||||
if (options.anchor) {
|
||||
iosOptions.anchor = options.anchor;
|
||||
}
|
||||
ActionSheetIOS.showActionSheetWithOptions(iosOptions, completion);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue