Skip to content

Commit

Permalink
Merge pull request #1171 from hackclub/malted/tavern-rsvp-rewrite
Browse files Browse the repository at this point in the history
Fix tavern shirt size loading state
  • Loading branch information
malted authored Feb 3, 2025
2 parents 8f910a9 + 21021ed commit 6824c6f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/harbor/tavern/tavern.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const RsvpStatusSwitcher = ({
<p className="text-red-500">
Failed to fetch your shirt size
</p>
) : !shirtSize ? (
) : shirtSize === 'loading' ? (
<p>Loading shirt size selection...</p>
) : (
<label>
Expand Down Expand Up @@ -360,10 +360,7 @@ export default function Tavern() {
const [selectedTavern, setSelectedTavern] = useState<
TavernEventItem | null | 'loading'
>('loading')
const [shirtSize, setShirtSize] = useLocalStorageState(
'cache.shirtSize',
'none',
)
const [shirtSize, setShirtSize] = useState('loading')
const [erroredFetches, setErroredFetches] = useState<
TavernDatafetchCategory[]
>([])
Expand Down

0 comments on commit 6824c6f

Please sign in to comment.