richie-education 3.1.3-dev35 → 3.1.3-dev38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,10 +239,16 @@ const Content = ({ product, order }: { product: Product; order?: CredentialOrder
239
239
  const CourseProductItem = ({ productId, course, compact = false }: CourseProductItemProps) => {
240
240
  // FIXME(rlecellier): useCourseProduct need's a filter on product.type that only return
241
241
  // CredentialOrder
242
- const { item: offering, states: productQueryStates } = useCourseProduct({
243
- product_id: productId,
244
- course_id: course.code,
245
- });
242
+ const { item: offering, states: productQueryStates } = useCourseProduct(
243
+ {
244
+ product_id: productId,
245
+ course_id: course.code,
246
+ },
247
+ {
248
+ refetchOnMount: 'always',
249
+ refetchOnWindowFocus: 'always',
250
+ },
251
+ );
246
252
 
247
253
  const product = offering?.product;
248
254
  const { item: productOrder, states: orderQueryStates } = useProductOrder({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "richie-education",
3
- "version": "3.1.3-dev35",
3
+ "version": "3.1.3-dev38",
4
4
  "description": "A CMS to build learning portals for Open Education",
5
5
  "main": "sandbox/manage.py",
6
6
  "scripts": {