Skip to content

Commit

Permalink
add an anchor to prevent reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Wang committed Dec 28, 2023
1 parent 9712c83 commit ad15503
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const QRState: FC<Props> = ({ qrData, showQR, setShowQR }) => {
<>
<div className="mb-10 space-y-4 md:hidden">
<motion.a
href={qrData ? qrData + `&return_to=${encodeURIComponent(window.location.href)}` : ''}
href={qrData ? qrData + `&return_to=${encodeURIComponent(window.location.href + '#anchor')}` : ''}
whileTap={{ scale: 0.95 }}
whileHover={{ scale: 1.05 }}
transition={{ layout: { duration: 0.15 } }}
Expand Down

0 comments on commit ad15503

Please sign in to comment.