Skip to content

Commit

Permalink
fix: remove unnessary code useState and import
Browse files Browse the repository at this point in the history
  • Loading branch information
HoreKk committed Nov 19, 2024
1 parent 90f233a commit 30e9b0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions webapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
## [0.69.1](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.69.0...v0.69.1) (2024-11-19)


### Bug Fixes

* change get of id query params from getServerSideProps to client side ([20309ed](https://github.com/SocialGouv/carte-jeune-engage/commit/20309edb6ff699c62ce101c0b9bb7a8129d233c9))
- change get of id query params from getServerSideProps to client side ([20309ed](https://github.com/SocialGouv/carte-jeune-engage/commit/20309edb6ff699c62ce101c0b9bb7a8129d233c9))

# [0.69.0](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.68.2...v0.69.0) (2024-11-19)

Expand Down
4 changes: 0 additions & 4 deletions webapp/src/pages/dashboard/order/[id]/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ type Step = {
};

export const OrderSuccess = ({ order_id }: OrderSuccessProps) => {
const utils = api.useUtils();
const { user } = useAuth();
const router = useRouter();

const [stepInterval, setStepInterval] = useState<NodeJS.Timeout>();
const [currentStep, setCurrentStep] = useState<Step>({
subtitle: "Validation du paiement...",
status: "loading",
Expand Down Expand Up @@ -65,8 +63,6 @@ export const OrderSuccess = ({ order_id }: OrderSuccessProps) => {
}
}, 2000);

setStepInterval(interval);

return () => clearInterval(interval);
}, []);

Expand Down

0 comments on commit 30e9b0f

Please sign in to comment.