Skip to content

Commit

Permalink
refactor(web/context): strict undefined check for progress
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 10, 2023
1 parent d337bc0 commit d7cadfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/features/menu/context/components/ContextButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ContextButton: React.FC<{
<ReactMarkdown>{button.description}</ReactMarkdown>
</Text>
)}
{button?.progress && (
{button.progress !== undefined && (
<Progress value={button.progress} size="sm" color={button.colorScheme || 'dark.3'} />
)}
</Stack>
Expand Down

0 comments on commit d7cadfb

Please sign in to comment.