diff --git a/src/features/province/components/create-guilds/CreateGuilds.js b/src/features/province/components/create-guilds/CreateGuilds.js index 2ba4e68..7c3e131 100644 --- a/src/features/province/components/create-guilds/CreateGuilds.js +++ b/src/features/province/components/create-guilds/CreateGuilds.js @@ -131,22 +131,21 @@ export const CreateGuilds = ({ guild, updateTable }) => { ); }); - console.log(guildsDataArray); - // dispatch(updateGuildByNationalIdNewService(guildsDataArray)).then( - // (result) => { - // if (result.payload.error) { - // handleSubmitError(openNotif, result.payload.error); - // } else { - // handleSubmitSuccess( - // dispatch, - // openNotif, - // updateTable, - // values, - // result.payload?.data - // ); - // } - // } - // ); + dispatch(updateGuildByNationalIdNewService(guildsDataArray)).then( + (result) => { + if (result.payload.error) { + handleSubmitError(openNotif, result.payload.error); + } else { + handleSubmitSuccess( + dispatch, + openNotif, + updateTable, + values, + result.payload?.data + ); + } + } + ); }, });