Skip to content

Commit cb03f25

Browse files
authored
fix(optimiser): optimise button loading state (#4076)
1 parent 6d271bd commit cb03f25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

website/src/views/optimiser/OptimiserContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ const OptimiserContent: React.FC = () => {
167167
}, []);
168168

169169
const buttonOnClick = async () => {
170-
setError(null);
171170
setShareableLink(''); // Reset shareable link
171+
setIsOptimising(true);
172+
setError(null);
172173

173174
const modulesList = Object.keys(timetable);
174175
const acadYearFormatted = `${acadYear.split('/')[0]}-${acadYear.split('/')[1]}`;

0 commit comments

Comments
 (0)