greyscale bet button if outcome is undefined

This commit is contained in:
mantikoros 2022-09-27 13:15:13 -04:00
parent 723d9dbece
commit 5e34b5a911

View File

@ -401,7 +401,7 @@ export function BuyPanel(props: {
isSubmitting={isSubmitting} isSubmitting={isSubmitting}
openModalButtonClass={clsx( openModalButtonClass={clsx(
'btn mb-2 flex-1', 'btn mb-2 flex-1',
betDisabled betDisabled || outcome === undefined
? 'btn-disabled bg-greyscale-2' ? 'btn-disabled bg-greyscale-2'
: outcome === 'NO' : outcome === 'NO'
? 'border-none bg-red-400 hover:bg-red-500' ? 'border-none bg-red-400 hover:bg-red-500'