mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 07:56:02 +01:00
refactor(web/context): strict undefined check for progress
This commit is contained in:
@@ -75,7 +75,7 @@ const ContextButton: React.FC<{
|
|||||||
<ReactMarkdown>{button.description}</ReactMarkdown>
|
<ReactMarkdown>{button.description}</ReactMarkdown>
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
{button?.progress && (
|
{button.progress !== undefined && (
|
||||||
<Progress value={button.progress} size="sm" color={button.colorScheme || 'dark.3'} />
|
<Progress value={button.progress} size="sm" color={button.colorScheme || 'dark.3'} />
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
Reference in New Issue
Block a user