Skip to content

Commit

Permalink
screens/
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahl-Aryan committed Sep 13, 2024
1 parent 3d56980 commit 5da87dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion screens/CameraScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useIsFocused } from "@react-navigation/native";
import { Linking } from "react-native";
import { redeemMerch } from "../api/redeemMerch";
import { useAppSelector } from "../redux/hooks";
import { RootState } from "../redux/store";

// import { Button, ButtonText, ButtonIcon, AddIcon } from "@gluestack-ui/themed";

Expand All @@ -35,7 +36,7 @@ const CameraScanner: React.FC = () => {
if (data != url) {
alert(`Bar code with type ${type} and data ${data} has been scanned!`);
setUrl(data);
const response = await redeemMerch(token, data, user_id);
redeemMerch(token, data, user_id);
setScanned(true);
}
};
Expand Down

0 comments on commit 5da87dc

Please sign in to comment.