fix link to form from address page

This commit is contained in:
tom
2024-05-13 19:36:22 +02:00
parent 51571b18f9
commit 06c8e4752e
2 changed files with 2 additions and 2 deletions
@@ -48,7 +48,7 @@ const PublicTagsSubmitForm = ({ config, onSubmitResult }: Props) => {
router.query.companyName ||
router.query.companyWebsite
) {
router.push({ pathname: '/public-tags/submit' }, undefined, { shallow: true });
router.replace({ pathname: '/public-tags/submit' }, undefined, { shallow: true });
}
}, [ router.query.addresses, router ]);
@@ -23,7 +23,7 @@ const PublicTagMenuItem = ({ className, hash, onBeforeClick, type }: Props) => {
return;
}
router.push({ pathname: '/public-tags/submit', query: { address: hash } });
router.push({ pathname: '/public-tags/submit', query: { addresses: [ hash ] } });
}, [ hash, onBeforeClick, router ]);
const element = (() => {