From 5f49860fd92b56310144b7ec4c823f8088f56bc1 Mon Sep 17 00:00:00 2001 From: zoey-on-github <88806187+zoey-on-github@users.noreply.github.com> Date: Thu, 28 Dec 2023 22:20:17 -0800 Subject: [PATCH] remove console.log statement and fix behavior for other settings for this plugin --- src/plugins/showMeYourName/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index 999899f9a..ab373e0fa 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -69,18 +69,21 @@ export default definePlugin({ return prefix + nick; if (settings.store.mode === "user-nick") if (StreamerMode.enabled) { - return <>{prefix}{username} {nick}...; + return <>{prefix}{username[0]}... {nick}; } else { return <>{prefix}{username} {nick}; } if (settings.store.mode === "nick-user") if (StreamerMode.enabled) { - console.log("yeah"); return <>{prefix}{nick} {username[0]}...; } else { return <>{prefix}{nick} {username}; } - return prefix + username; + if (StreamerMode.enabled) { + return prefix + username[0] + "..."; + } else { + return prefix + username; + } } catch { return author?.nick; }