check condition and correct that
This commit is contained in:
@@ -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={() => {
|
||||
|
||||
Reference in New Issue
Block a user