Shared Folder: Fix limit modal on retry (#3216)

This commit is contained in:
Alexander Zinchuk 2023-05-28 14:32:15 +02:00
parent 9d4a62e839
commit d25892caa4

View File

@ -70,10 +70,10 @@ const SettingsShareChatlist: FC<OwnProps & StateProps> = ({
}, [isLoading]);
useEffect(() => {
if (!url && folderId) {
if (!url && folderId && isActive) {
createChatlistInvite({ folderId });
}
}, [folderId, url]);
}, [folderId, isActive, url]);
const handleRevoke = useCallback(() => {
if (!url || !folderId) return;