We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e12cc23 commit 6b452d3Copy full SHA for 6b452d3
src/typedefs/Expiry.ts
@@ -39,6 +39,7 @@ export type Expiry =
39
export function resolveExpiry(
40
input: string
41
): "N" | "10M" | "1H" | "1D" | "1W" | "2W" | "1M" | "6M" | "1Y" {
42
+ if (!input) return null
43
const initials = input
44
.split(" ")
45
.map(w => w[0])
0 commit comments