Skip to content

Commit

Permalink
Merge pull request #1169 from hackclub/malted/tavern-rsvp-rewrite
Browse files Browse the repository at this point in the history
Fix tavern none state fr this time
  • Loading branch information
malted authored Feb 3, 2025
2 parents 033b44b + ec8c322 commit efab2bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/harbor/tavern/tavern.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ const RsvpStatusSwitcher = ({
<p className="text-red-500">
Failed to load your current RSVP status.
</p>
) : !rsvpStatus ? (
<p>Loading RSVP status selection...</p>
) : (
<>
<label>
Expand Down Expand Up @@ -347,7 +349,7 @@ export default function Tavern() {
useEffect(() => {
getTavernRsvpStatus()
.then((d) => {
console.log({ travernrspv: d })
if (!d) d = 'none'
setRsvpStatus(d)
})
.catch((err: Error) => {
Expand Down

0 comments on commit efab2bf

Please sign in to comment.