Prevent title counting sets when we aren't predicting them

This commit is contained in:
Brandon Presley 2022-10-01 15:35:20 +13:00
parent 0b489cac2a
commit edf823ca8b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default function EditSet() {
console.log(`${EditSet.name}.focus:`, set);
let title = 'Create set';
if (typeof set.id === 'number') title = 'Edit set';
else if (Number(set.sets) > 0)
else if (Number(set.sets) > 0 && settings.newSet === 'predict')
title = `${set.name} (${count + 1} / ${set.sets})`;
navigation.getParent()?.setOptions({
headerLeft: () => (