Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix toast hook issue
  • Loading branch information
regalijan committed Oct 20, 2023
1 parent c609ab4 commit e2c98cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/GameAppealCard.tsx
Expand Up @@ -23,6 +23,7 @@ import { useState } from "react";
export default function (props: GameAppealProps) {
const [loading, setLoading] = useState(false);
const [percentage, setPercentage] = useState(0);
const toast = useToast();

async function performAction(action: "accept" | "deny"): Promise<void> {
setLoading(true);
Expand All @@ -40,7 +41,7 @@ export default function (props: GameAppealProps) {
},
);

useToast()(
toast(
actionResponse.ok
? {
duration: 5000,
Expand Down

0 comments on commit e2c98cc

Please sign in to comment.