( activeClientFeedbackId: string | null, submittedClientFeedbackId: string, )
| 11 | * - different active id => a newer feedback session exists; ignore stale result |
| 12 | */ |
| 13 | export function resolveFeedbackSubmission( |
| 14 | activeClientFeedbackId: string | null, |
| 15 | submittedClientFeedbackId: string, |
| 16 | ): FeedbackSubmissionResolution { |
| 17 | const isCurrentSubmission = activeClientFeedbackId === submittedClientFeedbackId |
| 18 | return { |
| 19 | isCurrentSubmission, |
| 20 | shouldSettleSubmission: isCurrentSubmission || activeClientFeedbackId === null, |
| 21 | } |
| 22 | } |
no outgoing calls
no test coverage detected