aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-04-18 19:48:21 -0700
committerFuwn <[email protected]>2024-04-18 19:48:21 -0700
commitf69c509b55cc7bd19821b2d8e98dc720048b4078 (patch)
tree014a88ec79c575d1eb0d12ab732ae0b28efa3a04 /src/lib
parentfix(preferences): allow empty css (diff)
downloaddue.moe-f69c509b55cc7bd19821b2d8e98dc720048b4078.tar.xz
due.moe-f69c509b55cc7bd19821b2d8e98dc720048b4078.zip
fix(preferences): allow empty biography
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Database/userPreferences.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Database/userPreferences.ts b/src/lib/Database/userPreferences.ts
index bd6ea56d..a98d13ec 100644
--- a/src/lib/Database/userPreferences.ts
+++ b/src/lib/Database/userPreferences.ts
@@ -100,6 +100,6 @@ export const setBiography = async (userId: number, biography: string) => {
pinned_hololive_streams: userPreferences ? userPreferences.pinned_hololive_streams : [],
hide_missing_badges: userPreferences ? userPreferences.hide_missing_badges : false,
badge_wall_css: userPreferences ? userPreferences.badge_wall_css : '',
- biography
+ biography: biography || '\n'
});
};