Skip to content

Commit

Permalink
fix: remove return_to (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPenryn authored Jan 3, 2024
1 parent e46206e commit 1a2e004
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ const QRState: FC<Props> = ({ qrData, showQR, setShowQR }) => {
<>
<div className="mb-10 space-y-4 md:hidden">
<motion.a
href={
qrData
// added a dummy anchor to prevent reload (and loss of state) when returning to website on mobile device
? qrData + `&return_to=${encodeURIComponent(window.location.href + '#prevent_reload')}`
: ''
}
href={qrData ?? ''}
whileTap={{ scale: 0.95 }}
whileHover={{ scale: 1.05 }}
transition={{ layout: { duration: 0.15 } }}
Expand Down

0 comments on commit 1a2e004

Please sign in to comment.