Skip to content

Commit

Permalink
Use lf and constant for default category
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed May 7, 2024
1 parent f981ff3 commit 280b416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions teachertool/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export namespace Strings {
export const Checklist = lf("Checklist");
export const Home = lf("Home");
export const CreateEmptyChecklist = lf("Create Empty Checklist");
export const Other = lf("Other");
}

export namespace Ticks {
Expand Down
3 changes: 2 additions & 1 deletion teachertool/src/transforms/loadCatalogAsync.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Strings } from "../constants";
import { loadTestableCollectionFromDocsAsync } from "../services/backendRequests";
import { stateAndDispatch } from "../state";
import * as Actions from "../state/actions";
Expand All @@ -20,7 +21,7 @@ export async function loadCatalogAsync() {

// Add default tag if none are present
if (!c.tags || c.tags.length === 0) {
c.tags = ["Other"];
c.tags = [Strings.Other];
}
});

Expand Down

0 comments on commit 280b416

Please sign in to comment.