Skip to content

Commit

Permalink
Closes #1194. Adding key to Widget to re render
Browse files Browse the repository at this point in the history
  • Loading branch information
baires committed Jul 29, 2024
1 parent 9b1c94f commit 72a08c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Page: React.FC<IPage> = ({ tz, now: initialNow, initialReason }) => {
<title>Should I Deploy Today?</title>
</Head>
<div className={`wrapper ${!shouldIDeploy(now) && 'its-friday'}`}>
<Widget reason={initialReason} now={now} />
<Widget key={now.timezone} reason={initialReason} now={now} />
<div className="meta">
<Footer timezone={timezone} changeTimezone={changeTimezone} />
</div>
Expand Down

0 comments on commit 72a08c2

Please sign in to comment.