Skip to content

Commit

Permalink
Workaround for issue introduced by upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Dec 11, 2023
1 parent 64dc0a2 commit 0946a0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/training/TrainingButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
import { t } from '../../i18n';
import StandardDialog from '../../components/dialogs/StandardDialog.svelte';
import { Paths, navigate } from '../../router/paths';
import { gestures } from '../../script/stores/Stores';
$: trainButtonLabel = !$state.isPredicting
? 'menu.trainer.trainModelButton'
: 'menu.trainer.trainNewModelButton';
$: sufficientData = hasSufficientData();
// Workaround: hasSufficientData uses gestures but isn't reactive
$: sufficientData = $gestures && hasSufficientData();
$: trainingButtonDisabled = !sufficientData || $state.isTraining;
Expand Down

0 comments on commit 0946a0d

Please sign in to comment.