diff --git a/apps/storefront/src/pages/shoppingListDetails/ShoppingListDetails.tsx b/apps/storefront/src/pages/shoppingListDetails/ShoppingListDetails.tsx index 9920d7b8..6d34a828 100644 --- a/apps/storefront/src/pages/shoppingListDetails/ShoppingListDetails.tsx +++ b/apps/storefront/src/pages/shoppingListDetails/ShoppingListDetails.tsx @@ -246,7 +246,9 @@ function ShoppingListDetails({ setOpenPage }: ShoppingListDetailsProps) { await updateShoppingList(params) - snackbar.success('Shopping list status updated successfully') + snackbar.success('Shopping list status updated successfully', { + isClose: true, + }) tableRef.current?.initSearch() } finally { setIsRequestLoading(false) diff --git a/apps/storefront/src/utils/b3Product/shared/config.ts b/apps/storefront/src/utils/b3Product/shared/config.ts index e1212a0a..673790b2 100644 --- a/apps/storefront/src/utils/b3Product/shared/config.ts +++ b/apps/storefront/src/utils/b3Product/shared/config.ts @@ -419,8 +419,13 @@ export const getAllModifierDefaultValue = (modifiers: CustomFieldItems) => { modifierInfo.defaultValue = defaultInfo?.id || '' if (required) { - modifierInfo.isVerified = - modifierInfo.defaultValue.toString().length > 0 + if (type === 'checkbox') { + modifierInfo.isVerified = + defaultInfo?.value_data?.checked_value || false + } else { + modifierInfo.isVerified = + modifierInfo.defaultValue.toString().length > 0 + } } }