Fix accept gv2 invite test
This commit is contained in:
parent
1e2f80e9f9
commit
012e771fc2
3 changed files with 19 additions and 2 deletions
|
@ -76,7 +76,10 @@ export function useAnimated(
|
|||
useChain(shouldShowModal ? [overlayRef, modalRef] : [modalRef, overlayRef]);
|
||||
const close = useCallback(() => {
|
||||
setState(currentState => {
|
||||
if (currentState === ModalState.Open) {
|
||||
if (
|
||||
currentState === ModalState.Open ||
|
||||
currentState === ModalState.Opening
|
||||
) {
|
||||
return ModalState.Closing;
|
||||
}
|
||||
return currentState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue