Fix checkbox not toggling

Summary: In the Sandy welcome screen, the `Don't show this dialog again` checkbox couldn't not be toggled back on after it was toggled off.

Reviewed By: passy

Differential Revision: D25421721

fbshipit-source-id: c58170bb9442d1114d1197655bc58f61e47da880
This commit is contained in:
Michel Weststrate
2020-12-09 05:31:13 -08:00
committed by Facebook GitHub Bot
parent 2222a2b71c
commit dc328ef3fd

View File

@@ -35,7 +35,7 @@ export function SandyWelcomScreen() {
<Checkbox
checked={dontShowNextTime}
onChange={(e) => {
setDontShowNextTime(e.target.value);
setDontShowNextTime(e.target.checked);
}}>
Don't show this dialog in the future
</Checkbox>