Skip to content

Commit

Permalink
[INJIVER-601] fix:Back button from scan page is bringing the last eve…
Browse files Browse the repository at this point in the history
…nt from upload

Signed-off-by: srikanth716 <[email protected]>
  • Loading branch information
srikanth716 committed Sep 2, 2024
1 parent a76a991 commit 4473665
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ const ScanQrCode = () => {

useEffect(() => {
const handlePopState = () => {
if( method === "SCAN"){
dispatch(goHomeScreen({ method: "UPLOAD" }));
}
dispatch(goHomeScreen({ method: "UPLOAD"}));
};

window.addEventListener("popstate", handlePopState);
Expand Down

0 comments on commit 4473665

Please sign in to comment.