* MM-37666 Properly dismiss edit profile screen
* pass componentId to modal being dismissed
(cherry picked from commit 3ac73e808b)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
parent
71f80a033e
commit
0123c631be
2 changed files with 4 additions and 4 deletions
|
|
@ -377,7 +377,7 @@ export async function dismissModal(options = {}) {
|
|||
return;
|
||||
}
|
||||
|
||||
const componentId = EphemeralStore.getNavigationTopComponentId();
|
||||
const componentId = options.componentId || EphemeralStore.getNavigationTopComponentId();
|
||||
|
||||
try {
|
||||
await Navigation.dismissModal(componentId, options);
|
||||
|
|
|
|||
|
|
@ -179,11 +179,11 @@ export default class EditProfile extends PureComponent {
|
|||
};
|
||||
|
||||
close = () => {
|
||||
const {commandType} = this.props;
|
||||
const {commandType, componentId} = this.props;
|
||||
if (commandType === 'Push') {
|
||||
popTopScreen();
|
||||
popTopScreen(componentId);
|
||||
} else {
|
||||
dismissModal();
|
||||
dismissModal({componentId});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue