@socotra/ec-react-utils 2.13.0-demo.0 → 2.13.0-demo.1

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.
package/dist/index.d.ts CHANGED
@@ -372,10 +372,10 @@ export declare const getDefaultQuoteValues: (quote: QuoteResponse, productModel:
372
372
  default: {
373
373
  startTime: string;
374
374
  endTime: string;
375
- expirationTime: string | undefined;
375
+ expirationTime: string;
376
376
  } | {
377
377
  startTime: string;
378
- expirationTime: string | undefined;
378
+ expirationTime: string;
379
379
  endTime?: undefined;
380
380
  };
381
381
  advanced: {
package/dist/index.es.js CHANGED
@@ -9840,7 +9840,10 @@ const km = ({
9840
9840
  durationBasis: n,
9841
9841
  termDuration: i
9842
9842
  }) => {
9843
- const o = t ? re(t) : re(), l = a ? re(a) : void 0, s = l != null && l.isAfter(o) ? l.format("YYYY-MM-DD") : void 0;
9843
+ const o = t ? re(t) : re(), l = a ? re(a) : void 0, s = l != null && l.isAfter(o) ? l.format("YYYY-MM-DD") : (
9844
+ // 30 days after start time
9845
+ o.add(1, "month").format("YYYY-MM-DD")
9846
+ );
9844
9847
  if (r && re(r).isAfter(o))
9845
9848
  return {
9846
9849
  startTime: o.format("YYYY-MM-DD"),