diff --git a/src/equicordplugins/friendTags/index.tsx b/src/equicordplugins/friendTags/index.tsx
index 913d025a6..d718dd3f1 100644
--- a/src/equicordplugins/friendTags/index.tsx
+++ b/src/equicordplugins/friendTags/index.tsx
@@ -16,6 +16,12 @@ import { useForceUpdater } from "@utils/react";
import definePlugin, { OptionType } from "@utils/types";
import { Button, ChannelStore, Menu, RelationshipStore, TextInput, useEffect, UserStore, useState } from "@webpack/common";
+interface UserTagData {
+ tagName: string;
+ userIds: string[];
+}
+
+let SavedData: UserTagData[] = [];
const tagStoreName = "vc-friendtags-tags";
function parseUsertags(text: string): string[] {
@@ -30,7 +36,6 @@ function parseUsertags(text: string): string[] {
}
}
-
function queryFriendTags(query) {
GetData();
const tags = parseUsertags(query).map(e => e.toLowerCase());
@@ -56,13 +61,6 @@ function queryFriendTags(query) {
return response;
}
-let SavedData: UserTagData[] = [];
-
-interface UserTagData {
- tagName: string;
- userIds: string[];
-}
-
async function SetData() {
const fetchData = await DataStore.get(tagStoreName);
if (SavedData !== fetchData) {
@@ -128,16 +126,21 @@ function TagConfigCard(props) {
}
-
+
>
);
}
-function TagConfigurationComponent() {
+function TagConfigurationComponent() {
const update = useForceUpdater();
return (
@@ -166,18 +169,17 @@ function TagConfigurationComponent() {
}
-const settings = definePluginSettings(
- {
- tagConfiguration: {
- type: OptionType.COMPONENT,
- description: "The tag configuration component",
- component: () => {
- return (
-