Type 'string | null' is not assignable to type 'string | undefined'. - Theo's Typesafe Cult