Skip to content

Commit b387fcc

Browse files
committed
fix lint error
1 parent 9552996 commit b387fcc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

components/tutor/TutorWidget.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ export default function TutorWidget({ isAuthenticated }: TutorWidgetProps) {
5454

5555
const [showWelcome, setShowWelcome] = useState(true);
5656

57-
if (!isAuthenticated) {
58-
return null;
59-
}
60-
6157
// Welcome Bubble auto-hide timer
6258
useEffect(() => {
6359
if (!showWelcome) return;
@@ -167,6 +163,10 @@ export default function TutorWidget({ isAuthenticated }: TutorWidgetProps) {
167163
setShowWelcome(false);
168164
}
169165

166+
if (!isAuthenticated) {
167+
return null;
168+
}
169+
170170
return (
171171
<div ref={widgetRef} style={style}>
172172
{/* Recommendation/Welcome Bubble */}

0 commit comments

Comments
 (0)