fix: coverImage checking before trying to convert

This commit is contained in:
SethBurkart123
2024-04-07 16:24:27 +10:00
parent d861e8f85b
commit 5fb66eb304
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ export const sendThemeUpdate = (updatedTheme: CustomTheme, saveTheme?: boolean,
CustomImages: imageData,
};
if (saveTheme) {
if (saveTheme && updatedTheme.coverImage instanceof Blob) {
themeData.coverImage = await blobToBase64(updatedTheme.coverImage as Blob);
} else {
themeData.coverImage = null;