fix: use ! syntax instead of || ""

This commit is contained in:
Dominik Koch
2024-10-26 12:28:40 +02:00
committed by GitHub
parent e3b20268d5
commit bc91bb3132
22 changed files with 32 additions and 40 deletions

View File

@@ -10,7 +10,7 @@ import { AlertTriangle, CheckIcon, MinusIcon, PlusIcon } from "lucide-react";
import React, { useState } from "react";
const stripePromise = loadStripe(
process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY || "",
process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!,
);
export const calculatePrice = (count: number, isAnnual = false) => {