@ticketboothapp/booking 1.2.171 → 1.2.172
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/package.json
CHANGED
|
@@ -188,7 +188,8 @@ export function useAdminChangeQuotePreview({
|
|
|
188
188
|
latestChangeQuote?.canProceed === false &&
|
|
189
189
|
(latestChangeQuote.refundDecisionOperations?.length ?? 0) === 0;
|
|
190
190
|
const refundDecisionRequired = (latestChangeQuote?.refundDecisionOperations?.length ?? 0) > 0;
|
|
191
|
-
const
|
|
191
|
+
const hasPublishedChangeQuoteRef = useRef(latestChangeQuote !== null);
|
|
192
|
+
hasPublishedChangeQuoteRef.current = latestChangeQuote !== null;
|
|
192
193
|
/**
|
|
193
194
|
* Existing admin adjustments must be discoverable before the operator makes a change.
|
|
194
195
|
* Initial selection hydration can briefly leave the live availability/return unset, so use
|
|
@@ -480,7 +481,7 @@ export function useAdminChangeQuotePreview({
|
|
|
480
481
|
if (canReuseCompletedAdminChangeQuote(
|
|
481
482
|
changeQuoteInputsKey,
|
|
482
483
|
lastCompletedQuoteInputsKeyRef.current,
|
|
483
|
-
|
|
484
|
+
hasPublishedChangeQuoteRef.current,
|
|
484
485
|
)) {
|
|
485
486
|
setChangeQuoteLoading(false);
|
|
486
487
|
return;
|
|
@@ -581,7 +582,6 @@ export function useAdminChangeQuotePreview({
|
|
|
581
582
|
canRequestChangeQuote,
|
|
582
583
|
missingRequiredReturnSelection,
|
|
583
584
|
changeQuoteInputsKey,
|
|
584
|
-
hasPublishedChangeQuote,
|
|
585
585
|
]);
|
|
586
586
|
|
|
587
587
|
return {
|