diff options
author | Kareem Olim <kareemolim@gmail.com> | 2022-11-21 20:25:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 19:25:21 +0100 |
commit | b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b (patch) | |
tree | 2008b2c72acb2475dcee5f47e6f68f5cf8f472a0 | |
parent | bfe1fd9912f02809b52041902dafef96eb0ff072 (diff) | |
download | Vencord-b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b.tar.gz Vencord-b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b.tar.bz2 Vencord-b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b.zip |
Platform indicators: ignore unnecessary element (#240)
-rw-r--r-- | src/plugins/platformIndicators.tsx | 2 |
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" |