Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmanbear authored Aug 8, 2024
1 parent 00a0f19 commit db2bd94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Generator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export function Generator() {
if (filament.includes('PLA')) {
return 'Standard';
}
return filament; // Directly return the filament name for non-PLA filaments
if (filament.includes('PETG')) {
return 'PETG';
}
return filament.split(' ').pop(); // Extract the last part of the filament name if not PLA or PETG
};

const filtered = processesList.filter(process => {
Expand Down

0 comments on commit db2bd94

Please sign in to comment.