Skip to content

Commit 000d0b7

Browse files
authored
Filter out empty emails out of policy (#52)
1 parent a596ca0 commit 000d0b7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/fallback/Decrypt.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
key = policies.keys().next().value
9696
krCacheTemp.key = key
9797
} else {
98-
keylist = policies.keys()
98+
keylist = [...policies.keys()].filter((k) => k)
9999
decryptState = STATES.Recipients
100100
}
101101
}

src/routes/download/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
key = policies.keys().next().value!
148148
processPolicy()
149149
} else {
150-
keylist = [...policies.keys()]
150+
keylist = [...policies.keys()].filter((k) => k)
151151
downloadState = 'Recipients'
152152
}
153153
}

0 commit comments

Comments
 (0)