Fix ANY payment method select

This commit is contained in:
Reckless_Satoshi 2022-10-17 00:57:17 -07:00
parent 79dad7afe2
commit b288e017a6
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -206,7 +206,7 @@ const BookControl = ({
style: { textAlign: 'center' },
}}
value={paymentMethod[0] ? paymentMethod[0] : 'ANY'}
onChange={(e) => setPaymentMethods([e.target.value])}
onChange={(e) => setPaymentMethods(e.target.value == 'ANY' ? [] : [e.target.value])}
>
<MenuItem value={'ANY'}>
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>