diff --git a/app/Controllers/Http/UsersController.ts b/app/Controllers/Http/UsersController.ts index d02e730..4896079 100644 --- a/app/Controllers/Http/UsersController.ts +++ b/app/Controllers/Http/UsersController.ts @@ -88,7 +88,7 @@ export default class UsersController { await user?.merge({ password: password}).save() - await auth.login(user) + await auth.login(user!) session.flash('success', `Welcome back, ${auth.user!.username}!`) return response.redirect('/') diff --git a/resources/js/Components/Card/CardProductShow.js b/resources/js/Components/Card/CardProductShow.js index 4689d51..66c9f7b 100644 --- a/resources/js/Components/Card/CardProductShow.js +++ b/resources/js/Components/Card/CardProductShow.js @@ -50,7 +50,14 @@ const CardProductShow = ({ artiste, avatar, categorieName, product, liked }) => {product.name} - + + + {product.description} + + + + + - + - - - {product.description} - - - - - - + + - - - - - - - }> + + }> - + - - - - - + + + + + + + + +