From 50551a07d22b3124b229781a76e9bb360769d61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jhon=20Vent=C3=A9?= Date: Tue, 16 Jan 2024 10:27:52 -0500 Subject: [PATCH] fix: linter problems --- .../sequence-navigation/SequenceNavigation.test.jsx | 8 +++++++- .../course/sequence/sequence-navigation/hooks.js | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/courseware/course/sequence/sequence-navigation/SequenceNavigation.test.jsx b/src/courseware/course/sequence/sequence-navigation/SequenceNavigation.test.jsx index be848e2474..9558a41a5f 100644 --- a/src/courseware/course/sequence/sequence-navigation/SequenceNavigation.test.jsx +++ b/src/courseware/course/sequence/sequence-navigation/SequenceNavigation.test.jsx @@ -200,7 +200,13 @@ describe('Sequence Navigation', () => { sequenceId: sequenceBlocks[0].id, onNavigate: jest.fn(), }; - render(, { store: testStore, wrapWithRouter: true }); + render( + , + { store: testStore, wrapWithRouter: true }, + ); expect(screen.queryByRole('link', { name: /next/i })).not.toBeInTheDocument(); }); }); diff --git a/src/courseware/course/sequence/sequence-navigation/hooks.js b/src/courseware/course/sequence/sequence-navigation/hooks.js index e7dc774175..fda302465d 100644 --- a/src/courseware/course/sequence/sequence-navigation/hooks.js +++ b/src/courseware/course/sequence/sequence-navigation/hooks.js @@ -14,7 +14,10 @@ export function useSequenceNavigationMetadata(currentSequenceId, currentUnitId) // If we don't know the sequence and unit yet, then assume no. if (courseStatus !== 'loaded' || sequenceStatus !== 'loaded' || !currentSequenceId || !currentUnitId) { return { - isFirstUnit: false, isLastUnit: false, navigationDisabledNextSequence: false, navigationDisabledPrevSequence: false, + isFirstUnit: false, + isLastUnit: false, + navigationDisabledNextSequence: false, + navigationDisabledPrevSequence: false, }; }