mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Replace usage of <></> with null for project and style consistency
This commit is contained in:
@@ -30,7 +30,7 @@ export function Roles({ server }: Props) {
|
||||
|
||||
if (role !== 'default' && typeof roles[role] === 'undefined') {
|
||||
useEffect(() => setRole('default'));
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
const v = (id: string) => I32ToU32(id === 'default' ? server.default_permissions : roles[id].permissions)
|
||||
|
||||
Reference in New Issue
Block a user