Skip to content

Commit

Permalink
uncomment rfid login action to allow rfid login :D
Browse files Browse the repository at this point in the history
  • Loading branch information
ccruzkauppila committed Oct 29, 2024
1 parent 731a712 commit 7f532a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ui/RfidLoginDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TiWiFi } from "react-icons/ti";

import { AnimatedPopup, PopupRefActions } from "@/components/ui/AnimatedPopup";
import { FatButton } from "@/components/ui/Buttons/FatButton";
import { rfidLoginAction } from "@/server/actions/auth/login";
import { useNfcReader } from "@/state/useNfcReader";
import { animated, useTransition } from "@react-spring/web";

Expand Down Expand Up @@ -39,7 +40,7 @@ export const RfidLoginDialog = () => {
try {
const tagId = await reader.scanOne();
augmentStep();
//rfidLoginAction(tagId);
rfidLoginAction(tagId);
} catch (e) {
console.error("Failed to scan:", e);
setStep(0);
Expand Down

0 comments on commit 7f532a8

Please sign in to comment.