invoiceninja / ui

Invoice Ninja: Web admin portal built with React
https://app.invoicing.co
Other
52 stars 46 forks source link

[Bugfix] Checking The Toggle #1784

Closed Civolilah closed 1 month ago

Civolilah commented 1 month ago

@beganovich @turbo124 The PR includes fixes for checking the toggle across the app where there is a possibility to return a "1" value instead of "true" or true as a boolean. While working on the bulk_update action for clients, I discovered a bug when updating values for custom fields. If the custom field is chosen as a toggle/switch, then when we send true as a boolean in the payload, the API's response is a string value ("1"). We had not covered that case earlier, but it is covered now. Let me know your thoughts.