Skip to content

Commit 3a3e917

Browse files
authored
Fix playground initial content for 11.0 (#794)
1 parent e0cf26c commit 3a3e917

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Playground.res

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,13 +1457,9 @@ let make = (~versions: array<string>) => {
14571457
| (None, Res)
14581458
| (None, _) =>
14591459
switch initialVersion {
1460-
| Some({CompilerManagerHook.Semver.major: major, minor, _}) =>
1461-
if major >= 10 && minor >= 1 {
1462-
InitialContent.since_10_1
1463-
} else {
1464-
InitialContent.original
1465-
}
1466-
| None => InitialContent.original
1460+
| Some({major: 10, minor}) if minor >= 1 => InitialContent.since_10_1
1461+
| Some({major}) if major > 10 => InitialContent.since_10_1
1462+
| _ => InitialContent.original
14671463
}
14681464
}
14691465

0 commit comments

Comments
 (0)