Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-ahlawat committed Mar 30, 2021
1 parent c70aa8f commit b171990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frontend/screens/Scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Scan = ({ route, navigation }) => {
const [packageTag, setPackageTag] = useState(null);
const [modeTag, setModeTag] = useState(null);

const inFocus = navigation.addListener('state', () => {
const inFocus = navigation.addListener('focus', () => {
setScanned(false);
setSerialNumber(null);
setOrder(null);
Expand Down

0 comments on commit b171990

Please sign in to comment.