Skip to content

Commit

Permalink
updated info
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Mar 4, 2024
1 parent 999415d commit 00fc6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(game)/scanner/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ function Scan({ playerToken }: { playerToken: string | null }) {
try {
const result = await sendPuzzle2Player(playerToken, boothToken);
if (result === puzzleSuccess) {
setInfo({ title: "已完成", msg: "恭喜獲得拼圖!!" });
setInfo({ title: "成功", msg: "恭喜獲得拼圖" });
} else if (result === puzzleTaken) {
setInfo({ title: "失敗", msg: "此拼圖已存在。" });
setInfo({ title: "成功", msg: "你已經有這個拼圖了!" });
} else if (result === invalidToken) {
setInfo({ title: "失敗", msg: "請先報到。" });
}
Expand Down

0 comments on commit 00fc6ff

Please sign in to comment.