editor: Fix selected turn on load

pull/9617/head^2
Benedikt Werner 2021-08-21 08:06:03 +02:00
parent fb279c8326
commit d88d82484f
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ function controls(ctrl: EditorCtrl, state: EditorState): VNode {
'option',
{
attrs: {
value: key[0] == 'w' ? 'white' : 'black',
value: key[0] === 'w' ? 'white' : 'black',
selected: key[0] === ctrl.turn[0],
},
},
ctrl.trans(key)