@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.cjs CHANGED
@@ -3998,6 +3998,7 @@ function CrowCopilot({
3998
3998
  }
3999
3999
  }, [shouldRestoreHistory, chat.conversationId, conversations, chat]);
4000
4000
  React3.useEffect(() => {
4001
+ if (effectiveGetIdentityToken) return;
4001
4002
  if (isLoadingStyles || hasRestoredActiveConvRef.current) return;
4002
4003
  const timer = setTimeout(() => {
4003
4004
  if (hasRestoredActiveConvRef.current || isVerifiedUser) return;
@@ -4014,7 +4015,7 @@ function CrowCopilot({
4014
4015
  });
4015
4016
  }, 500);
4016
4017
  return () => clearTimeout(timer);
4017
- }, [isLoadingStyles]);
4018
+ }, [isLoadingStyles, effectiveGetIdentityToken]);
4018
4019
  React3.useEffect(() => {
4019
4020
  try {
4020
4021
  if (chat.conversationId) {