Skip to content

Commit

Permalink
Made if checks one line
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Mar 15, 2021
1 parent 53bbf89 commit cf70578
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/dashboard/setup/server/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ export const Server: React.FunctionComponent = () => {
}

useEffect(() => {
if (!bundleStatus) {
return;
}
if (!bundleStatus) return;

if (serverBtn && serverBtn.current) {
serverBtn.current.toggleButton(bundleStatus.isServerOn);
}
if (serverBtn.current) serverBtn.current.toggleButton(bundleStatus.isServerOn);
}, [bundleStatus]);

return (
Expand Down

0 comments on commit cf70578

Please sign in to comment.