From d022bd078aa166084cbdc2685d5e0fe3ff023467 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 16 May 2024 13:44:27 +0100 Subject: [PATCH] Updated the currencies to have OMR as well --- src/pages/(admin)/Lists/PackageList.tsx | 2 +- src/resources/paypal.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/(admin)/Lists/PackageList.tsx b/src/pages/(admin)/Lists/PackageList.tsx index 9c60a28b..780f4657 100644 --- a/src/pages/(admin)/Lists/PackageList.tsx +++ b/src/pages/(admin)/Lists/PackageList.tsx @@ -40,7 +40,7 @@ function PackageCreator({pack, onClose}: {pack?: Package; onClose: () => void}) const [unit, setUnit] = useState(pack?.duration_unit || "months"); const [price, setPrice] = useState(pack?.price || 0); - const [currency, setCurrency] = useState(pack?.currency || "EUR"); + const [currency, setCurrency] = useState(pack?.currency || "OMR"); const submit = () => { (pack ? axios.patch : axios.post)(pack ? `/api/packages/${pack.id}` : "/api/packages", { diff --git a/src/resources/paypal.ts b/src/resources/paypal.ts index 7cd4a838..3f3b7a48 100644 --- a/src/resources/paypal.ts +++ b/src/resources/paypal.ts @@ -95,4 +95,8 @@ export const CURRENCIES: {label: string; currency: string}[] = [ label: "United States dollar", currency: "USD", }, + { + label: "Omani rial", + currency: "OMR", + }, ];