fix: syntax error - wrap subscription ternary content in fragment

This commit is contained in:
Nemo
2026-03-24 15:40:30 +08:00
parent c778d14a13
commit e0da23fa56

View File

@@ -268,6 +268,7 @@ export default function ClientDetailScreen() {
<Text style={{ fontSize: 15, color: '#94A3B8' }}>No active subscription</Text> <Text style={{ fontSize: 15, color: '#94A3B8' }}>No active subscription</Text>
</View> </View>
) : ( ) : (
<>
{/* Plan type badge */} {/* Plan type badge */}
{sub.type && ( {sub.type && (
<View style={{ flexDirection: 'row', marginBottom: 12, gap: 8 }}> <View style={{ flexDirection: 'row', marginBottom: 12, gap: 8 }}>
@@ -298,6 +299,7 @@ export default function ClientDetailScreen() {
<InfoRow label="Start Date" value={sub.startDate ? new Date(sub.startDate).toLocaleDateString('en-PH', { year: 'numeric', month: 'long', day: 'numeric' }) : null} /> <InfoRow label="Start Date" value={sub.startDate ? new Date(sub.startDate).toLocaleDateString('en-PH', { year: 'numeric', month: 'long', day: 'numeric' }) : null} />
<InfoRow label="Billing Day" value={sub.billingDay ? `Day ${sub.billingDay}` : null} isLast /> <InfoRow label="Billing Day" value={sub.billingDay ? `Day ${sub.billingDay}` : null} isLast />
</View> </View>
</>
)} )}
</ScrollView> </ScrollView>
)} )}