Skip to content

Commit

Permalink
フォーマットを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Oct 26, 2024
1 parent 4a144d9 commit e7d4ac2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions task_yell/src/components/subscribe-button.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"use client";

import { auth, db, firebaseApp } from "@/firebase/client-app";
import { auth, firebaseApp } from "@/firebase/client-app";
import { createData, readSingleData, updateData } from "@/firebase/firestore";
import { getFirestore } from "firebase/firestore";
import { getMessaging, getToken } from "firebase/messaging";
import { useCallback, useState, useTransition } from "react";

Expand Down Expand Up @@ -60,7 +59,7 @@ export function SubscribeButton() {
tokens.push(token);
if (user) {
await updateData("users", auth.currentUser.uid, {
"fcm-tokens": tokens
"fcm-tokens": tokens,
});
} else {
await createData("users", {
Expand Down

0 comments on commit e7d4ac2

Please sign in to comment.