fallback to unformatted recipient phone number (i.e. with TINDER sender)

This commit is contained in:
m5r 2021-12-04 00:48:22 +01:00
parent c0016a55f7
commit d3035ad268

View File

@ -35,7 +35,7 @@ export default function ConversationsList() {
<Link href={Routes.ConversationPage({ recipient })}>
<a className="flex flex-col">
<div className="flex flex-row justify-between">
<span className="font-medium">{formattedPhoneNumber}</span>
<span className="font-medium">{formattedPhoneNumber ?? recipient}</span>
<div className="text-gray-700 flex flex-row gap-x-1">
{formatRelativeDate(lastMessage.sentAt)}
<IoChevronForward className="w-4 h-4 my-auto" />