Updated the currencies to have OMR as well

This commit is contained in:
Tiago Ribeiro
2024-05-16 13:44:27 +01:00
parent c18afee9ad
commit d022bd078a
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ function PackageCreator({pack, onClose}: {pack?: Package; onClose: () => void})
const [unit, setUnit] = useState<DurationUnit>(pack?.duration_unit || "months");
const [price, setPrice] = useState(pack?.price || 0);
const [currency, setCurrency] = useState<string>(pack?.currency || "EUR");
const [currency, setCurrency] = useState<string>(pack?.currency || "OMR");
const submit = () => {
(pack ? axios.patch : axios.post)(pack ? `/api/packages/${pack.id}` : "/api/packages", {

View File

@@ -95,4 +95,8 @@ export const CURRENCIES: {label: string; currency: string}[] = [
label: "United States dollar",
currency: "USD",
},
{
label: "Omani rial",
currency: "OMR",
},
];