Skip to content

Commit 70d5bb2

Browse files
AlexTugarevroboquat
authored andcommitted
[dashboard] avoid unnecessary getBillingModeForUser call
1 parent e650dd3 commit 70d5bb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: components/dashboard/src/App.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ function App() {
275275
}, [user]);
276276

277277
useEffect(() => {
278+
if (!teams) {
279+
return;
280+
}
278281
// Refresh billing mode (side effect on other components per UserContext!)
279282
refreshUserBillingMode();
280283
}, [teams]);

0 commit comments

Comments
 (0)