Skip to content

Commit 3c6c655

Browse files
add type for safety
1 parent 14a8b76 commit 3c6c655

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/constants/TryNowData/bootableSoasData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export interface StepData {
2222
export interface steps {
2323
heading: string;
2424
StepData: StepData[];
25+
// Optional identifier used by some pages to match logo cards
26+
is?: string;
2527
}
2628

2729
export const SugarSteps: steps[] = [

src/pages/TryNow/Raspberry.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ const RaspberryPiPage = () => {
5252
onClick={() => {
5353
const found = raspberrySteps.find(
5454
(g) =>
55-
g.heading.toLowerCase().includes(key) ||
56-
(g as any).is === key,
55+
g.heading.toLowerCase().includes(key) || g.is === key,
5756
);
5857
if (found) {
5958
setSelectedSteps(found);

0 commit comments

Comments
 (0)