Skip to content

Commit 2832b02

Browse files
committed
feat: avoid magic number for total steps
1 parent d8020fc commit 2832b02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/getInfoText.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const infoTextMap: Record<number, string | null> = {
1515
13: 'Step 14: Connection terminated',
1616
}
1717

18+
export const TOTAL_STEPS = Object.keys(infoTextMap).length
19+
1820
function getInfoText(step: number) {
1921
const infoText = infoTextMap[step]
2022

0 commit comments

Comments
 (0)