Re-enable button for seeds set to zero

Change the statement to explicitly look for null and undefined so it doesn't fail to re-enable the button on images with seeds set to zero.
This commit is contained in:
Yorzaren 2023-09-23 15:49:10 -05:00 committed by psychedelicious
parent 6d821b32d3
commit 6fcc7d4c4b

View File

@ -287,7 +287,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
icon={<FaSeedling />}
tooltip={`${t('parameters.useSeed')} (S)`}
aria-label={`${t('parameters.useSeed')} (S)`}
isDisabled={!metadata?.seed}
isDisabled={metadata?.seed === null || metadata?.seed === undefined}
onClick={handleUseSeed}
/>
<IAIIconButton