Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix: idのつけ忘れ
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Kizuku committed Aug 10, 2024
1 parent 0a9af1d commit bee5926
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/shooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DefaultButton } from "../../components/ui/Button";
import { Modal } from "../../components/ui/Modal";
import { ShooterButton } from "../../components/ui/ShooterButton";
import { useOrientation } from "../../hooks/useOrientation";
import { useSocketRefStore } from "../../store";
import { useSocketRefStore, useUUIDStore } from "../../store";
import { type Schema, message_type } from "../../type/schema";
import style from "./index.module.css";

Expand All @@ -19,6 +19,7 @@ const Shooter = () => {
];

const [images, setImages] = useState(initialImages);
const uuid = useUUIDStore((state) => state.uuid);

const handleClick = () => {
const audio = new Audio("/sound/cork_sound.mp3");
Expand All @@ -29,7 +30,7 @@ const Shooter = () => {
console.error("オーディオの音が出なかった", error);
});
const data: Schema = {
id: "shooter",
id: uuid,
interval: 0,
angle: {
x: orientationDiff.beta,
Expand Down

0 comments on commit bee5926

Please sign in to comment.