Fixed missing greeting when no custom messages present
This commit is contained in:
@@ -13,7 +13,7 @@ function Header({
|
||||
basicWeather,
|
||||
openWeatherModal,
|
||||
}: {
|
||||
greet: string;
|
||||
greet: string | undefined;
|
||||
date: string;
|
||||
current: CurrentWeather;
|
||||
setCurrent: (current: CurrentWeather) => void;
|
||||
|
||||
@@ -11,7 +11,7 @@ function LargeHeader({
|
||||
weather,
|
||||
basicWeather,
|
||||
}: {
|
||||
greet: string;
|
||||
greet: string | undefined;
|
||||
date: string;
|
||||
weather: any;
|
||||
basicWeather: any;
|
||||
@@ -73,7 +73,7 @@ function LargeHeader({
|
||||
fz={isMobile ? '2rem' : '6rem'}
|
||||
>
|
||||
{greet
|
||||
.replace('$firstName', currentUser.firstName)
|
||||
?.replace('$firstName', currentUser.firstName)
|
||||
.replace('$lastName', currentUser.lastName)
|
||||
.replace('$^firstName', currentUser.firstName.toUpperCase())
|
||||
.replace('$^lastName', currentUser.lastName.toUpperCase())}
|
||||
|
||||
Reference in New Issue
Block a user