Compute the direction in the `if` below when its `undefined` and just use `description.direction` in the `else` block.