@usecrow/ui 0.1.47 → 0.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3972,6 +3972,7 @@ function CrowCopilot({
3972
3972
  }
3973
3973
  }, [shouldRestoreHistory, chat.conversationId, conversations, chat]);
3974
3974
  useEffect(() => {
3975
+ if (effectiveGetIdentityToken) return;
3975
3976
  if (isLoadingStyles || hasRestoredActiveConvRef.current) return;
3976
3977
  const timer = setTimeout(() => {
3977
3978
  if (hasRestoredActiveConvRef.current || isVerifiedUser) return;
@@ -3988,7 +3989,7 @@ function CrowCopilot({
3988
3989
  });
3989
3990
  }, 500);
3990
3991
  return () => clearTimeout(timer);
3991
- }, [isLoadingStyles]);
3992
+ }, [isLoadingStyles, effectiveGetIdentityToken]);
3992
3993
  useEffect(() => {
3993
3994
  try {
3994
3995
  if (chat.conversationId) {