Use MTM price based on USDC for meme generation #7

Merged
nabarun merged 20 commits from ag-usd-price into main 2025-01-30 15:03:09 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit cc64e6a035 - Show all commits

View File

@ -60,7 +60,10 @@ const AIServiceCard: React.FC<AIServiceCardProps> = ({
loading: false,
error: result.error,
})
return
// Reload the page to get latest prices
setTimeout(() => {
window.location.reload();
}, 3000);
}
if (result.imageUrl) {
@ -121,7 +124,7 @@ const AIServiceCard: React.FC<AIServiceCardProps> = ({
{generationState.error && (
<div className="mt-4 bg-red-900/20 border border-red-500/20 text-red-400 px-4 py-3 rounded-xl text-center">
{generationState.error}
{generationState.error}, reloading...
</div>
)}

View File

@ -65,8 +65,6 @@ export async function generateWithFlux(
}
} catch (error) {
console.error('Flux generation error:', error)
// Reload the page to get latest prices
window.location.reload();
return {
error: error instanceof Error ? error.message : 'Generation failed'
}