We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78dc29c commit d7b0386Copy full SHA for d7b0386
1 file changed
client/src/pages/Strategy.tsx
@@ -87,12 +87,11 @@ function Strategy() {
87
function update(choice, options, setFn) {
88
let fatDict;
89
90
- if (options == null) return;
+ if (!options) return;
91
92
if (choice == null) {
93
fatDict = options;
94
} else {
95
- if (choice == undefined) return;
96
// iterate through options
97
// check if current element has label == choice
98
// for the one that does, set fatDict = to the current_element.value
@@ -102,7 +101,7 @@ function Strategy() {
102
101
}
103
104
105
- if (fatDict == null) return;
+ if (!fatDict) return;
106
107
let newOptions: any = [];
108
Object.entries(fatDict).map(([key, dictValue]) => {
0 commit comments