Merge pull request #50 from pennyteenycat/feature/chatUpdate

remove auto refill flag from options
This commit is contained in:
pennyteenycat 2025-09-07 22:55:34 +02:00 committed by GitHub
commit 138661778e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,6 @@ import { useTranslations } from "next-intl";
import { Button, Spinner, Typography } from "@/components/ui";
import { useSingleCheckout } from "@/hooks/payment/useSingleCheckout";
import { useChatStore } from "@/providers/chat-store-provider";
import { IRefillModals, IRefillModalsProduct } from "@/services/socket/events";
import BenefitsList from "../BenefitsList/BenefitsList";
@ -29,8 +28,6 @@ export default function RefillOptionsModal({
}: RefillOptionsModalProps) {
const t = useTranslations("RefillOptionsModal");
const isAutoTopUp = useChatStore(state => state.isAutoTopUp);
const { handleSingleCheckout, isLoading } = useSingleCheckout({
onSuccess: onPaymentSuccess,
onError: onPaymentError,
@ -46,7 +43,6 @@ export default function RefillOptionsModal({
handleSingleCheckout({
productId: selectedOption.id,
key: selectedOption.key,
isAutoTopUp,
});
};