Skip to content

Commit

Permalink
🐛 Update usd -> eur rate
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Jan 14, 2025
1 parent c17ac99 commit 573e201
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/dashboard/src/module/common/utils/convertToEuro.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { formatPrice } from "@/module/common/utils/formatPrice";
import {formatPrice} from "@/module/common/utils/formatPrice";

export function convertToEuro(price?: string | number) {
if (typeof price === "undefined") return;
const amountInEuros = Number(price) * 0.91; // Assuming 1 USD = 0.91 EUR
const formattedEuros = formatPrice(
const amountInEuros = Number(price) * 0.97; // Assuming 1 USD = 0.97 EUR
return formatPrice(
amountInEuros.toString(),
undefined,
"EUR"
);
return formattedEuros;
}

0 comments on commit 573e201

Please sign in to comment.