Updated the currencies to have OMR as well
This commit is contained in:
@@ -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", {
|
||||
|
||||
@@ -95,4 +95,8 @@ export const CURRENCIES: {label: string; currency: string}[] = [
|
||||
label: "United States dollar",
|
||||
currency: "USD",
|
||||
},
|
||||
{
|
||||
label: "Omani rial",
|
||||
currency: "OMR",
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user