Skip to content

Commit a470213

Browse files
committed
fix: update navigation paths in AddProtectedData component
1 parent 72bd03d commit a470213

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/myData/addProtectedData.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function AddProtectedData() {
5050
});
5151

5252
const updateStep = (step: number) => {
53-
navigate(`${location.pathname}?step=${step}`);
53+
navigate(`/my-data/add-protected-data?step=${step}`);
5454
setCurrentStep(step);
5555
};
5656

@@ -85,7 +85,7 @@ export default function AddProtectedData() {
8585

8686
const handleBackClick = () => {
8787
if (currentStep === 0) {
88-
navigate('/my-data');
88+
// navigate('/my-data');
8989
} else {
9090
updateStep(currentStep - 1);
9191
}
@@ -130,7 +130,7 @@ export default function AddProtectedData() {
130130
queryClient.invalidateQueries({
131131
queryKey: ['apps', userAddress],
132132
});
133-
navigate('/my-data');
133+
// navigate('/my-data');
134134
toast({
135135
title: 'You have successfully add a new protected data.',
136136
variant: 'success',

0 commit comments

Comments
 (0)