diff --git a/src/stores/business-type/index.ts b/src/stores/business-type/index.ts index 443852e0..d9ef83f2 100644 --- a/src/stores/business-type/index.ts +++ b/src/stores/business-type/index.ts @@ -37,10 +37,13 @@ const useBusinessTypeStore = defineStore('business-type-store', () => { return false; } - async function create(data: BusinessTypePayLoad) { - const res = await api.post('/business-type', { + async function create( + data: BusinessTypePayLoad, + ): Promise { + const res = await api.post('/business-type', { ...data, }); + if (res.status < 400) { return res.data; }