diff --git a/packages/pl-fe/src/features/edit-profile/index.tsx b/packages/pl-fe/src/features/edit-profile/index.tsx index a9a5f8c3c..04c410597 100644 --- a/packages/pl-fe/src/features/edit-profile/index.tsx +++ b/packages/pl-fe/src/features/edit-profile/index.tsx @@ -240,6 +240,8 @@ const EditProfile: React.FC = () => { if (header.file !== undefined) params.header = header.file || ''; if (avatar.file !== undefined) params.avatar = avatar.file || ''; + if (!instance.configuration.accounts?.allow_custom_css) delete params.custom_css; + promises.push(dispatch(patchMe(params as any))); if (features.muteStrangers) {