Initial git settings on frontend

This commit is contained in:
2024-09-28 15:35:52 +02:00
parent 0558ea292b
commit 4290119b93
4 changed files with 133 additions and 35 deletions

View File

@@ -70,8 +70,7 @@ export const saveUserSettings = async (settings) => {
throw new Error(errorData?.message || `HTTP error! status: ${response.status}`);
}
const savedSettings = await response.json();
return savedSettings;
return await response.json();
} catch (error) {
console.error('Error saving user settings:', error);
throw error;