Remove redundant console logs and comments across components
- Cleaned up unused debug logs and comments in `AddNewBookForm`, `QuillConversation`, `OfflinePinSetup`, `OfflinePinVerify`, `ShortStoryGenerator`, and `page.tsx`. - Improved overall code readability and maintainability.
This commit is contained in:
@@ -222,10 +222,8 @@ export default function ShortStoryGenerator({onClose}: ShortStoryGeneratorProps)
|
||||
if (data.title) {
|
||||
setGeneratedStoryTitle(data.title);
|
||||
}
|
||||
|
||||
// Le message final du endpoint avec title, totalPrice, useYourKey, totalCost
|
||||
|
||||
if (data.useYourKey !== undefined && data.totalPrice !== undefined) {
|
||||
console.log(data);
|
||||
if (data.useYourKey) {
|
||||
setTotalPrice((prev: number): number => prev + data.totalPrice!);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user