{ return options.filter(option => option.selected).length === 1}, "Exactly one payment option must be selected" ), }} children={(paymentOptionsField) => (
Payment Options
0} fallback={'No payment options...'} > {(_, i) => (
{ return ( paymentOptionsField().state.value .filter(option => option.selected).length === 1 )}, 'Only one payment option should be selected' )} type="checkbox" />
)}
{paymentOptionsField().state.meta.errors ? ( {paymentOptionsField().state.meta.errors.join(', ')} ) : null}
)} />