Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Fix types

Blue Mouseec4fd2ba0697
diff --git a/web/app/components/marketing/Pricing.tsx b/web/app/components/marketing/Pricing.tsx
index 9bab96d60..5f45537f2 100644
--- a/web/app/components/marketing/Pricing.tsx
+++ b/web/app/components/marketing/Pricing.tsx
@@ -84,7 +84,6 @@ const Pricing = ({ authenticated, isBillingPage }: PricingProps) => {
: [user.planCode, ...STANDARD_PLANS]
: STANDARD_PLANS
- // @ts-expect-error
const [selectedTier, setSelectedTier] = useState<any>(authenticated ? PLAN_LIMITS[user.planCode] : PLAN_LIMITS.hobby)
const planFeatures = getPaidFeatures(t, selectedTier)
const currency = CURRENCIES[currencyCode]
@@ -157,7 +156,6 @@ const Pricing = ({ authenticated, isBillingPage }: PricingProps) => {
setPlanCodeLoading(tier.planCode)
- // @ts-expect-error
if (!window.Paddle) {
toast.error('Payment script has not yet loaded! Please, try again.')
setPlanCodeLoading(null)
@@ -168,7 +166,6 @@ const Pricing = ({ authenticated, isBillingPage }: PricingProps) => {
user.referrerID && (user.planCode === 'trial' || user.planCode === 'none') && !user.cancellationEffectiveDate
const coupon = discountMayBeApplied ? REFERRAL_DISCOUNT_CODE : undefined
- // @ts-expect-error
window.Paddle.Checkout.open({
product: billingFrequency === BillingFrequency.monthly ? tier.pid : tier.ypid,
email: user.email,
@@ -228,7 +225,6 @@ const Pricing = ({ authenticated, isBillingPage }: PricingProps) => {
}
}
- // @ts-expect-error
const userPlancodeID = PLAN_LIMITS[user.planCode]?.index
const planCodeID = selectedTier.index
const downgrade = planCodeID < userPlancodeID
@@ -426,7 +422,6 @@ const Pricing = ({ authenticated, isBillingPage }: PricingProps) => {
values={{
amount: 10,
}}
- // @ts-expect-error
components={{
url: (
<Link
diff --git a/web/app/ui/icons/Sort.tsx b/web/app/ui/icons/Sort.tsx
index 794a0a906..580fecf76 100644
--- a/web/app/ui/icons/Sort.tsx
+++ b/web/app/ui/icons/Sort.tsx
@@ -2,8 +2,8 @@ import { ChevronUpDownIcon, ChevronUpIcon, ChevronDownIcon } from '@heroicons/re
import cx from 'clsx'
interface SortProps {
- sortByAscend?: boolean
- sortByDescend?: boolean
+ sortByAscend: boolean | null
+ sortByDescend: boolean | null
className?: string
}