aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/platformIndicators.tsx
diff options
context:
space:
mode:
authorKareem Olim <kareemolim@gmail.com>2022-11-21 20:25:21 +0200
committerGitHub <noreply@github.com>2022-11-21 19:25:21 +0100
commitb42b8d755f9ab4e27bc86c1596a03dd0d9c2992b (patch)
tree2008b2c72acb2475dcee5f47e6f68f5cf8f472a0 /src/plugins/platformIndicators.tsx
parentbfe1fd9912f02809b52041902dafef96eb0ff072 (diff)
downloadVencord-b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b.tar.gz
Vencord-b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b.tar.bz2
Vencord-b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b.zip
Platform indicators: ignore unnecessary element (#240)
Diffstat (limited to 'src/plugins/platformIndicators.tsx')
-rw-r--r--src/plugins/platformIndicators.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platformIndicators.tsx b/src/plugins/platformIndicators.tsx
index 870cd38..2b44973 100644
--- a/src/plugins/platformIndicators.tsx
+++ b/src/plugins/platformIndicators.tsx
@@ -75,6 +75,8 @@ const PlatformIndicator = ({ user }: { user: User; }) => {
/>
));
+ if (!icons.length) return null;
+
return (
<div
className="vc-platform-indicator"