fix opening same modal twice (#7639)
Co-authored-by: Fokin Aleksandr Konstantinovich <aleksafokin@ozon.ru>
This commit is contained in:
parent
7c747c28b6
commit
ab7da5f664
1 changed files with 1 additions and 1 deletions
|
|
@ -564,7 +564,7 @@ export async function dismissAllModalsAndPopToScreen(screenId: AvailableScreens,
|
|||
}
|
||||
|
||||
export function showModal(name: AvailableScreens, title: string, passProps = {}, options: Options = {}) {
|
||||
if (!isScreenRegistered(name)) {
|
||||
if (!isScreenRegistered(name) || NavigationStore.getVisibleModal() === name) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue