mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
style: apply biome import order and formatting to useGenerationProgress
This commit is contained in:
committed by
capy-ai-staging[bot]
parent
8086c818b6
commit
872121c0f7
@@ -3,8 +3,8 @@ import { useEffect, useRef } from 'react';
|
|||||||
import { ToastAction } from '@/components/ui/toast';
|
import { ToastAction } from '@/components/ui/toast';
|
||||||
import { useToast } from '@/components/ui/use-toast';
|
import { useToast } from '@/components/ui/use-toast';
|
||||||
import { apiClient } from '@/lib/api/client';
|
import { apiClient } from '@/lib/api/client';
|
||||||
import { condenseError } from '@/lib/utils/errorText';
|
|
||||||
import { useGenerationSettings } from '@/lib/hooks/useSettings';
|
import { useGenerationSettings } from '@/lib/hooks/useSettings';
|
||||||
|
import { condenseError } from '@/lib/utils/errorText';
|
||||||
import { useGenerationStore } from '@/stores/generationStore';
|
import { useGenerationStore } from '@/stores/generationStore';
|
||||||
import { usePlayerStore } from '@/stores/playerStore';
|
import { usePlayerStore } from '@/stores/playerStore';
|
||||||
|
|
||||||
@@ -133,9 +133,7 @@ export function useGenerationProgress() {
|
|||||||
|
|
||||||
queryClient.refetchQueries({ queryKey: ['history'] });
|
queryClient.refetchQueries({ queryKey: ['history'] });
|
||||||
|
|
||||||
const condensed = condenseError(
|
const condensed = condenseError(data.error || 'An error occurred during generation');
|
||||||
data.error || 'An error occurred during generation',
|
|
||||||
);
|
|
||||||
toast({
|
toast({
|
||||||
title: data.status === 'not_found' ? 'Generation not found' : 'Generation failed',
|
title: data.status === 'not_found' ? 'Generation not found' : 'Generation failed',
|
||||||
description: condensed.truncated
|
description: condensed.truncated
|
||||||
|
|||||||
Reference in New Issue
Block a user