diff --git a/Tusker/Views/AccountDisplayNameLabel.swift b/Tusker/Views/AccountDisplayNameLabel.swift index 2c368c44..2292be56 100644 --- a/Tusker/Views/AccountDisplayNameLabel.swift +++ b/Tusker/Views/AccountDisplayNameLabel.swift @@ -20,7 +20,8 @@ struct AccountDisplayNameLabel: View { init(account: Account, fontSize: Int) { self.account = account self.fontSize = fontSize - self._text = State(initialValue: Text(verbatim: account.displayName)) + let name = account.displayName.isEmpty ? account.username : account.displayName + self._text = State(initialValue: Text(verbatim: name)) } var body: some View {