diff --git a/webapp/CHANGELOG.md b/webapp/CHANGELOG.md index 69ee3335..b3058284 100644 --- a/webapp/CHANGELOG.md +++ b/webapp/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.70.26](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.70.25...v0.70.26) (2024-11-25) + +### Bug Fixes + +- router push dashboard before ([4651d31](https://github.com/SocialGouv/carte-jeune-engage/commit/4651d31d7a442a549565c2756f3d07bcd5169892)) +* wallet history button disappear when wallet is empty ([f0477c4](https://github.com/SocialGouv/carte-jeune-engage/commit/f0477c44279b5ddb5d85deff09d5eb095cf97574)) + ## [0.70.25](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.70.24...v0.70.25) (2024-11-22) ### Bug Fixes diff --git a/webapp/package.json b/webapp/package.json index 641af2d0..71625d35 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -1,6 +1,6 @@ { "name": "webapp", - "version": "0.70.25", + "version": "0.70.26", "private": true, "scripts": { "dev": "next dev", diff --git a/webapp/src/pages/dashboard/wallet/index.tsx b/webapp/src/pages/dashboard/wallet/index.tsx index aea46bc7..0537dbce 100644 --- a/webapp/src/pages/dashboard/wallet/index.tsx +++ b/webapp/src/pages/dashboard/wallet/index.tsx @@ -56,9 +56,11 @@ export default function Wallet() { (a, b) => new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime() ); + const isWalletEmpty = !walletOffers || !walletOffers.length; + return ( - {walletOffers && walletOffers.length > 0 ? ( + {!isWalletEmpty ? ( <> {walletOffers.map((walletOffer, index) => ( @@ -84,36 +86,36 @@ export default function Wallet() { ))} - - - - - - - Historique des réductions - - - - - - ) : ( )} + + + + + + + Historique des réductions + + + + + +