We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9552996 commit b387fccCopy full SHA for b387fcc
1 file changed
components/tutor/TutorWidget.tsx
@@ -54,10 +54,6 @@ export default function TutorWidget({ isAuthenticated }: TutorWidgetProps) {
54
55
const [showWelcome, setShowWelcome] = useState(true);
56
57
- if (!isAuthenticated) {
58
- return null;
59
- }
60
-
61
// Welcome Bubble auto-hide timer
62
useEffect(() => {
63
if (!showWelcome) return;
@@ -167,6 +163,10 @@ export default function TutorWidget({ isAuthenticated }: TutorWidgetProps) {
167
163
setShowWelcome(false);
168
164
}
169
165
166
+ if (!isAuthenticated) {
+ return null;
+ }
+
170
return (
171
<div ref={widgetRef} style={style}>
172
{/* Recommendation/Welcome Bubble */}
0 commit comments