check condition and correct that

This commit is contained in:
Jaanu423
2026-03-27 13:02:22 +05:30
parent ac9e7772b9
commit e653b48a8b
+2 -2
View File
@@ -103,7 +103,7 @@ export const JoinedGroupCard: FC<JoinedGroupCardProps> = ({ item }:any) => {
</View>
<View style={styles.infoItem}>
<Text style={[styles.infoLabel, { color: theme.colors.textMuted }]}>Duration</Text>
<Text style={[styles.infoValue, { color: theme.colors.textPrimary }]}>{`${item?.cycleType} (${item?.customCycleDays} days)`}</Text>
<Text style={[styles.infoValue, { color: theme.colors.textPrimary }]}>{ item?.cycleType === 'CUSTOM' ? `${item?.cycleType} (${item?.customCycleDays} days)` : item?.cycleType}</Text>
</View>
</View>
@@ -145,7 +145,7 @@ export const JoinedGroupCard: FC<JoinedGroupCardProps> = ({ item }:any) => {
<Text style={[styles.paidText, { color: theme.colors.success }]}>✓ PAID</Text>
</View>
) : (
item.status !== 'COMPLETED' && (
(item.status !== 'COMPLETED' || item?.status === "ACTIVE" || item?.status === "DELAY") && (
<TouchableOpacity
style={[styles.payButton, { backgroundColor: theme.colors.primary }]}
onPress={() => {