Skip to content

Commit d7b0386

Browse files
committed
uwu
1 parent 78dc29c commit d7b0386

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

client/src/pages/Strategy.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ function Strategy() {
8787
function update(choice, options, setFn) {
8888
let fatDict;
8989

90-
if (options == null) return;
90+
if (!options) return;
9191

9292
if (choice == null) {
9393
fatDict = options;
9494
} else {
95-
if (choice == undefined) return;
9695
// iterate through options
9796
// check if current element has label == choice
9897
// for the one that does, set fatDict = to the current_element.value
@@ -102,7 +101,7 @@ function Strategy() {
102101
}
103102
}
104103
}
105-
if (fatDict == null) return;
104+
if (!fatDict) return;
106105

107106
let newOptions: any = [];
108107
Object.entries(fatDict).map(([key, dictValue]) => {

0 commit comments

Comments
 (0)