Skip to content

Commit 71f0f5d

Browse files
committed
use rescript core option instead of belt
1 parent 4586f71 commit 71f0f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Playground.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ let make = (~versions: array<string>) => {
14851485
let (keyMap, setKeyMap) = React.useState(() => {
14861486
Dom.Storage2.localStorage
14871487
->Dom.Storage2.getItem("vimMode")
1488-
->Belt.Option.map(CodeMirror.KeyMap.fromString)
1489-
->Belt.Option.getWithDefault(CodeMirror.KeyMap.Default)
1488+
->Option.map(CodeMirror.KeyMap.fromString)
1489+
->Option.getOr(CodeMirror.KeyMap.Default)
14901490
})
14911491

14921492
React.useEffect1(() => {

0 commit comments

Comments
 (0)