File tree Expand file tree Collapse file tree
pages/settings/Subscription/RequestEarlyCancellationPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ function useCancellationType(): CancellationType | undefined {
2020 return CONST . CANCELLATION_TYPE . MANUAL ;
2121 }
2222
23+ // Check for cancellation with type "none"
24+ const noneCancellation = cancellationDetails ?. find ( ( detail ) => detail . cancellationType === CONST . CANCELLATION_TYPE . NONE ) ;
25+ if ( noneCancellation ) {
26+ return CONST . CANCELLATION_TYPE . NONE ;
27+ }
28+
2329 // There are no new items in the cancellation details NVP
2430 // eslint-disable-next-line react-compiler/react-compiler
2531 if ( previousCancellationDetails . current ?. length === cancellationDetails ?. length ) {
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ function RequestEarlyCancellationPage() {
109109 const contentMap : Partial < Record < CancellationType , ReactNode > > = {
110110 [ CONST . CANCELLATION_TYPE . MANUAL ] : manualCancellationContent ,
111111 [ CONST . CANCELLATION_TYPE . AUTOMATIC ] : automaticCancellationContent ,
112+ [ CONST . CANCELLATION_TYPE . NONE ] : manualCancellationContent ,
112113 } ;
113114
114115 const screenContent = cancellationType ? contentMap [ cancellationType ] : surveyContent ;
You can’t perform that action at this time.
0 commit comments