Assignment Progress now only renders when the subject has one or more assignments
This commit is contained in:
@@ -324,6 +324,7 @@ export default function ViewDetailsSubject() {
|
||||
</View>
|
||||
</View>
|
||||
|
||||
{totalAssignments > 0 ? (
|
||||
<View className="mt-5">
|
||||
<View className="mb-2 flex-row items-center justify-between">
|
||||
<Text className="text-sm font-semibold text-text-secondary">
|
||||
@@ -353,6 +354,7 @@ export default function ViewDetailsSubject() {
|
||||
} remaining`}
|
||||
</Text>
|
||||
</View>
|
||||
) : null}
|
||||
|
||||
<Text className="mt-4 text-sm text-text-muted">
|
||||
Last changed: {formatDateTime(subject.lastChanged)}
|
||||
|
||||
Reference in New Issue
Block a user