fix(serverProfilesToolbox): saved strings nullable

This commit is contained in:
D3SOX 2024-02-16 23:35:03 +01:00
parent ade179994d
commit 267b27c022
No known key found for this signature in database
GPG key ID: 39EC1673FC37B048

View file

@ -11,12 +11,12 @@ import { Button, GuildMemberStore, UserProfileStore, UserStore } from "@webpack/
const SummaryItem = findComponentByCodeLazy("borderType", "showBorder", "hideDivider"); const SummaryItem = findComponentByCodeLazy("borderType", "showBorder", "hideDivider");
let savedNick = ""; let savedNick: string | null = null;
let savedPronouns = ""; let savedPronouns: string | null = null;
const { setPendingNickname, setPendingPronouns }: { const { setPendingNickname, setPendingPronouns }: {
setPendingNickname: (a: string | null) => void; setPendingNickname: (a: string | null) => void;
setPendingPronouns: (a: string) => void; setPendingPronouns: (a: string | null) => void;
} = findByPropsLazy("setPendingNickname"); } = findByPropsLazy("setPendingNickname");
export default definePlugin({ export default definePlugin({