mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: coverImage checking before trying to convert
This commit is contained in:
@@ -24,7 +24,7 @@ export const SettingsContextProvider: React.FC<{ children: ReactNode }> = ({ chi
|
||||
shortcuts: [],
|
||||
customshortcuts: [],
|
||||
transparencyEffects: false,
|
||||
theme: ""
|
||||
selectedTheme: ''
|
||||
});
|
||||
|
||||
const [showPicker, setShowPicker] = useState<boolean>(false);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user