Skip to content

Commit f12b667

Browse files
refactor: rename variable for clarity in Page component
1 parent 2905a64 commit f12b667

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { weatherWidgetFlag } from "./flags";
2-
import WeatherClient from "./components/WeatherClient";
32

43
export default async function Page() {
5-
const isWeatherWidgetEnabled = await weatherWidgetFlag();
4+
const weather = await weatherWidgetFlag();
65

7-
return <div>{isWeatherWidgetEnabled ? "Flag is on" : "Flag is off"}</div>;
6+
return <div>{weather ? "Flag is on" : "Flag is off"}</div>;
87
}

0 commit comments

Comments
 (0)