Massive backend refactoring done
This commit is contained in:
@@ -85,9 +85,9 @@ export const useTracker = (props: any) => { // Props ignored/removed
|
||||
// Function to reload Quick Log session
|
||||
const loadQuickLogSession = async () => {
|
||||
try {
|
||||
const response = await api.get<{ success: boolean; session?: WorkoutSession }>('/sessions/quick-log');
|
||||
if (response.success && response.session) {
|
||||
setQuickLogSession(response.session);
|
||||
const response = await api.get<any>('/sessions/quick-log');
|
||||
if (response.success && response.data?.session) {
|
||||
setQuickLogSession(response.data.session);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Failed to load quick log session:", error);
|
||||
|
||||
Reference in New Issue
Block a user